Skip to content

Commit 95418f9

Browse files
authored
Merge pull request #3629 from dotty-staging/fix-#3623
Fix #3623: Special case MethodType in PlainPrinter
2 parents b0de920 + b083520 commit 95418f9

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
@@ -316,6 +316,8 @@ class PlainPrinter(_ctx: Context) extends Printer {
316316
else dclsText(trueDecls)
317317
tparamsText ~ " extends " ~ toTextParents(tp.parents) ~ "{" ~ selfText ~ declsText ~
318318
"} at " ~ preText
319+
case mt: MethodType =>
320+
toTextGlobal(mt)
319321
case tp =>
320322
": " ~ toTextGlobal(tp)
321323
}

0 commit comments

Comments
 (0)