File tree 1 file changed +3
-2
lines changed
compiler/src/dotty/tools/dotc/printing
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -211,7 +211,8 @@ class PlainPrinter(_ctx: Context) extends Printer {
211
211
~ keywordText(" erased " ).provided(tp.isErasedMethod)
212
212
~ keywordText(" implicit " ).provided(tp.isImplicitMethod && ! tp.isContextualMethod)
213
213
~ paramsText(tp)
214
- ~ (if tp.resultType.isInstanceOf [MethodOrPoly ] then " )" else " ): " )
214
+ ~ " )"
215
+ ~ (Str (" : " ) provided ! tp.resultType.isInstanceOf [MethodOrPoly ])
215
216
~ toText(tp.resultType)
216
217
}
217
218
case tp : ExprType =>
@@ -223,7 +224,7 @@ class PlainPrinter(_ctx: Context) extends Printer {
223
224
case tp : PolyType =>
224
225
changePrec(GlobalPrec ) {
225
226
" [" ~ paramsText(tp) ~ " ]" ~ lambdaHash(tp) ~
226
- (Str (" => " ) provided ! tp.resultType.isInstanceOf [MethodOrPoly ]) ~
227
+ (Str (" : " ) provided ! tp.resultType.isInstanceOf [MethodOrPoly ]) ~
227
228
toTextGlobal(tp.resultType)
228
229
}
229
230
case AnnotatedType (tpe, annot) =>
You can’t perform that action at this time.
0 commit comments