Skip to content

Commit ff51e53

Browse files
committed
Print complete extractor for reflect TypeLambda
1 parent 77b0ae0 commit ff51e53

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

compiler/src/scala/quoted/runtime/impl/printers/Extractors.scala

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ object Extractors {
214214
case ByNameType(underlying) =>
215215
this += "ByNameType(" += underlying += ")"
216216
case ParamRef(binder, idx) =>
217-
this += "ParamRef(" += binder += ", " += idx += ")"
217+
this += "ParamRef(binder, " += idx += ")"
218218
case ThisType(tp) =>
219219
this += "ThisType(" += tp += ")"
220220
case SuperType(thistpe, supertpe) =>
@@ -228,8 +228,7 @@ object Extractors {
228228
case PolyType(argNames, argBounds, resType) =>
229229
this += "PolyType(" ++= argNames += ", " ++= argBounds += ", " += resType += ")"
230230
case TypeLambda(argNames, argBounds, resType) =>
231-
// resType is not printed to avoid cycles
232-
this += "TypeLambda(" ++= argNames += ", " ++= argBounds += ", _)"
231+
this += "TypeLambda(" ++= argNames += ", " ++= argBounds += ", " += resType += ")"
233232
case TypeBounds(lo, hi) =>
234233
this += "TypeBounds(" += lo += ", " += hi += ")"
235234
case NoPrefix() =>

0 commit comments

Comments
 (0)