Skip to content

Commit 092083e

Browse files
committed
Fix printing of HKTypeLambdas
1 parent 0f7ce34 commit 092083e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

compiler/src/dotty/tools/dotc/printing/PlainPrinter.scala

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,11 @@ class PlainPrinter(_ctx: Context) extends Printer {
197197
}
198198
case tp: ExprType =>
199199
changePrec(GlobalPrec) { "=> " ~ toText(tp.resultType) }
200-
case tp: TypeLambda =>
200+
case tp: HKTypeLambda =>
201+
changePrec(GlobalPrec) {
202+
"[" ~ paramsText(tp) ~ "]" ~ lambdaHash(tp) ~ Str(" =>> ") ~ toTextGlobal(tp.resultType)
203+
}
204+
case tp: PolyType =>
201205
changePrec(GlobalPrec) {
202206
"[" ~ paramsText(tp) ~ "]" ~ lambdaHash(tp) ~
203207
(Str(" => ") provided !tp.resultType.isInstanceOf[MethodType]) ~

0 commit comments

Comments
 (0)