We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f08e5b commit c5ca1f8Copy full SHA for c5ca1f8
compiler/src/dotty/tools/dotc/printing/PlainPrinter.scala
@@ -187,9 +187,9 @@ class PlainPrinter(_ctx: Context) extends Printer {
187
case tp: MethodType =>
188
changePrec(GlobalPrec) {
189
"("
190
- ~ Str("given ").provided(tp.isContextualMethod)
191
- ~ Str("erased ").provided(tp.isErasedMethod)
192
- ~ Str("implicit ").provided(tp.isImplicitMethod && !tp.isContextualMethod)
+ ~ keywordText("given ").provided(tp.isContextualMethod)
+ ~ keywordText("erased ").provided(tp.isErasedMethod)
+ ~ keywordText("implicit ").provided(tp.isImplicitMethod && !tp.isContextualMethod)
193
~ paramsText(tp)
194
~ (if tp.resultType.isInstanceOf[MethodType] then ")" else "): ")
195
~ toText(tp.resultType)
0 commit comments