Skip to content

Commit 14c4366

Browse files
committed
Add missing Str
1 parent ff43466 commit 14c4366

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,11 @@ class PlainPrinter(_ctx: Context) extends Printer {
187187
case tp: MethodType =>
188188
changePrec(GlobalPrec) {
189189
"("
190-
~ "given ".provided(tp.isContextualMethod)
191-
~ "erased ".provided(tp.isErasedMethod)
192-
~ "implicit ".provided(tp.isImplicitMethod && !tp.isContextualMethod)
190+
~ Str("given ").provided(tp.isContextualMethod)
191+
~ Str("erased ").provided(tp.isErasedMethod)
192+
~ Str("implicit ").provided(tp.isImplicitMethod && !tp.isContextualMethod)
193193
~ paramsText(tp)
194-
~ (if tp.resultType.isInstanceOf[MethodType] then ")" else "): "
194+
~ (if tp.resultType.isInstanceOf[MethodType] then ")" else "): ")
195195
~ toText(tp.resultType)
196196
}
197197
case tp: ExprType =>

0 commit comments

Comments
 (0)