File tree 1 file changed +3
-3
lines changed
compiler/src/dotty/tools/dotc/printing
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ 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 [MethodType ] then " )" else " ): " )
214
+ ~ (if tp.resultType.isInstanceOf [MethodOrPoly ] then " )" else " ): " )
215
215
~ toText(tp.resultType)
216
216
}
217
217
case tp : ExprType =>
@@ -223,7 +223,7 @@ class PlainPrinter(_ctx: Context) extends Printer {
223
223
case tp : PolyType =>
224
224
changePrec(GlobalPrec ) {
225
225
" [" ~ paramsText(tp) ~ " ]" ~ lambdaHash(tp) ~
226
- (Str (" => " ) provided ! tp.resultType.isInstanceOf [MethodType ]) ~
226
+ (Str (" => " ) provided ! tp.resultType.isInstanceOf [MethodOrPoly ]) ~
227
227
toTextGlobal(tp.resultType)
228
228
}
229
229
case AnnotatedType (tpe, annot) =>
@@ -418,7 +418,7 @@ class PlainPrinter(_ctx: Context) extends Printer {
418
418
(if (isParameter) " : => " else " : " ) ~ toTextGlobal(tp.widenExpr)
419
419
case tp : PolyType =>
420
420
" [" ~ paramsText(tp) ~ " ]"
421
- ~ (Str (" : " ) provided ! tp.resultType.isInstanceOf [MethodType ])
421
+ ~ (Str (" : " ) provided ! tp.resultType.isInstanceOf [MethodOrPoly ])
422
422
~ toTextGlobal(tp.resultType)
423
423
case tp =>
424
424
" : " ~ toTextGlobal(tp)
You can’t perform that action at this time.
0 commit comments