Skip to content

Commit d77f3ea

Browse files
committed
Fix printing of match type cases defining type variables
1 parent 60b513d commit d77f3ea

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ class PlainPrinter(_ctx: Context) extends Printer {
178178
case MatchType(bound, scrutinee, cases) =>
179179
changePrec(GlobalPrec) {
180180
def caseText(tp: Type): Text = tp match {
181+
case tp: HKTypeLambda => caseText(tp.resultType)
181182
case defn.MatchCase(pat, body) => "case " ~ toText(pat) ~ " => " ~ toText(body)
182183
case _ => "case " ~ toText(tp)
183184
}

0 commit comments

Comments
 (0)