Skip to content

Commit b083520

Browse files
committed
Fix #3623: Special case MethodType in PlainPrinter
1 parent dc52e6f commit b083520

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,8 @@ class PlainPrinter(_ctx: Context) extends Printer {
342342
else dclsText(trueDecls)
343343
tparamsText ~ " extends " ~ toTextParents(tp.parents) ~ "{" ~ selfText ~ declsText ~
344344
"} at " ~ preText
345+
case mt: MethodType =>
346+
toTextGlobal(mt)
345347
case tp =>
346348
": " ~ toTextGlobal(tp)
347349
}

0 commit comments

Comments
 (0)