This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import scala.quoted.* | |
extension (using quotes: Quotes)(repr: quotes.reflect.TypeRepr) | |
def flatMapResultType(f: quotes.reflect.TypeRepr => Option[quotes.reflect.TypeRepr]): Option[quotes.reflect.TypeRepr] = | |
import quotes.reflect.* | |
repr match | |
case MethodType(paramNames, paramTypes, resultType) => | |
resultType.flatMapResultType(f).map(tp => MethodType(paramNames)(_ => paramTypes, _ => tp)) | |
// case PolyType => // should not appear here | |
case tp => |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
username= | |
password= | |
stagedRepositoryId= | |
while [ "$1" != "" ]; do | |
case $1 in | |
-u | --username) | |
shift |