File tree 1 file changed +4
-3
lines changed
library/src/scala/tasty/reflect
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1631,23 +1631,24 @@ trait Printers
1631
1631
case Type .IsMethodType (tpe) =>
1632
1632
this += " ("
1633
1633
printList(tpe.paramNames.zip(tpe.paramTypes), " , " ,
1634
- (paramName, paramType) => (this += paramName += " : " ).printType(paramType ))
1634
+ (x : ( String , Type )) => (this += x._1 += " : " ).printType(x._2 ))
1635
1635
this += " )"
1636
1636
printType(tpe.resType)
1637
1637
1638
1638
case Type .IsPolyType (tpe) =>
1639
1639
this += " ["
1640
1640
printList(tpe.paramNames.zip(tpe.paramBounds), " , " ,
1641
- (paramName, paramBound) => (this += paramName += " " ).printTypeOrBound(paramBound ))
1641
+ (x : ( String , TypeBounds )) => (this += x._1 += " " ).printTypeOrBound(x._2 ))
1642
1642
this += " ]"
1643
1643
printType(tpe.resType)
1644
1644
1645
1645
case Type .IsTypeLambda (tpe) =>
1646
1646
this += " ["
1647
1647
printList(tpe.paramNames.zip(tpe.paramBounds), " , " ,
1648
- (paramName, paramBound) => (this += paramName += " " ).printTypeOrBound(paramBound ))
1648
+ (x : ( String , TypeBounds )) => (this += x._1 += " " ).printTypeOrBound(x._2 ))
1649
1649
this += " ] => "
1650
1650
printType(tpe.resType)
1651
+
1651
1652
case _ =>
1652
1653
throw new MatchError (tpe.showExtractors)
1653
1654
}
You can’t perform that action at this time.
0 commit comments