Skip to content

Commit 6ff1bb4

Browse files
committed
Compat with 2.12.8
1 parent 7868a9e commit 6ff1bb4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

library/src/scala/tasty/reflect/Printers.scala

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1631,23 +1631,24 @@ trait Printers
16311631
case Type.IsMethodType(tpe) =>
16321632
this += "("
16331633
printList(tpe.paramNames.zip(tpe.paramTypes), ", ",
1634-
(paramName, paramType) => (this += paramName += ": ").printType(paramType))
1634+
(x: (String, Type)) => (this += x._1 += ": ").printType(x._2))
16351635
this += ")"
16361636
printType(tpe.resType)
16371637

16381638
case Type.IsPolyType(tpe) =>
16391639
this += "["
16401640
printList(tpe.paramNames.zip(tpe.paramBounds), ", ",
1641-
(paramName, paramBound) => (this += paramName += " ").printTypeOrBound(paramBound))
1641+
(x: (String, TypeBounds)) => (this += x._1 += " ").printTypeOrBound(x._2))
16421642
this += "]"
16431643
printType(tpe.resType)
16441644

16451645
case Type.IsTypeLambda(tpe) =>
16461646
this += "["
16471647
printList(tpe.paramNames.zip(tpe.paramBounds), ", ",
1648-
(paramName, paramBound) => (this += paramName += " ").printTypeOrBound(paramBound))
1648+
(x: (String, TypeBounds)) => (this += x._1 += " ").printTypeOrBound(x._2))
16491649
this += "] => "
16501650
printType(tpe.resType)
1651+
16511652
case _ =>
16521653
throw new MatchError(tpe.showExtractors)
16531654
}

0 commit comments

Comments
 (0)