We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60b513d commit d77f3eaCopy full SHA for d77f3ea
compiler/src/dotty/tools/dotc/printing/PlainPrinter.scala
@@ -178,6 +178,7 @@ class PlainPrinter(_ctx: Context) extends Printer {
178
case MatchType(bound, scrutinee, cases) =>
179
changePrec(GlobalPrec) {
180
def caseText(tp: Type): Text = tp match {
181
+ case tp: HKTypeLambda => caseText(tp.resultType)
182
case defn.MatchCase(pat, body) => "case " ~ toText(pat) ~ " => " ~ toText(body)
183
case _ => "case " ~ toText(tp)
184
}
0 commit comments