[2.x] Use sbt 2.0.4 (#9512)

This commit is contained in:
eugene yokota 2026-07-27 00:02:28 -04:00 committed by GitHub
parent 551857bbd4
commit b130cbcd05
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -6,14 +6,14 @@ object DatatypeConfig {
/** Extract the only type parameter from a TpeRef */
def oneArg(tpe: Type): Type = {
val pat = s"""${tpe.removeTypeParameters.name}[<\\[](.+?)[>\\]]""".r
val pat(arg0) = tpe.name
val pat(arg0) = tpe.name.runtimeChecked
NamedType(arg0.split('.').toList)
}
/** Extract the two type parameters from a TpeRef */
def twoArgs(tpe: Type): List[Type] = {
val pat = s"""${tpe.removeTypeParameters.name}[<\\[](.+?), (.+?)[>\\]]""".r
val pat(arg0, arg1) = tpe.name
val pat(arg0, arg1) = tpe.name.runtimeChecked
NamedType(arg0.split('.').toList) :: NamedType(arg1.split('.').toList) :: Nil
}

View File

@ -1 +1 @@
sbt.version=2.0.3
sbt.version=2.0.4