Skip to content

Commit c5ca1f8

Browse files
committed
Use keywordText for argument modifiers
1 parent 1f08e5b commit c5ca1f8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

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

0 commit comments

Comments
 (0)