From d1907a6cc5d8b7eb5cbb284e903170744f9c4772 Mon Sep 17 00:00:00 2001 From: "Yang, Bo" Date: Sun, 12 Dec 2021 18:06:30 -0800 Subject: [PATCH] Use =>> instead of => for printing a PolyType --- compiler/src/dotty/tools/dotc/printing/PlainPrinter.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/src/dotty/tools/dotc/printing/PlainPrinter.scala b/compiler/src/dotty/tools/dotc/printing/PlainPrinter.scala index 3a3fca5e7f90..51ebb7553ddf 100644 --- a/compiler/src/dotty/tools/dotc/printing/PlainPrinter.scala +++ b/compiler/src/dotty/tools/dotc/printing/PlainPrinter.scala @@ -215,7 +215,7 @@ class PlainPrinter(_ctx: Context) extends Printer { case tp: PolyType => changePrec(GlobalPrec) { "[" ~ paramsText(tp) ~ "]" ~ lambdaHash(tp) ~ - (Str(" => ") provided !tp.resultType.isInstanceOf[MethodType]) ~ + (Str(" =>> ") provided !tp.resultType.isInstanceOf[MethodType]) ~ toTextGlobal(tp.resultType) } case AnnotatedType(tpe, annot) =>