File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed
src/dotty/tools/dotc/printing Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -169,7 +169,9 @@ class PlainPrinter(_ctx: Context) extends Printer {
169169 " <noprefix>"
170170 case tp : MethodType =>
171171 changePrec(GlobalPrec ) {
172- (if (tp.isImplicitMethod) " (implicit " else " (" ) ~ paramsText(tp) ~
172+ (" (" + (if (tp.isImplicitMethod) " implicit " else " " )
173+ + (if (tp.isErasedMethod) " erased " else " " )
174+ ) ~ paramsText(tp) ~
173175 (if (tp.resultType.isInstanceOf [MethodType ]) " )" else " ): " ) ~
174176 toText(tp.resultType)
175177 }
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ object SyntaxHighlighting {
3131 private val tripleQs = Console .RED_B + " ???" + NoColor
3232
3333 private val keywords : Seq [String ] = for {
34- index <- IF to ENUM // All alpha keywords
34+ index <- IF to ERASED // All alpha keywords
3535 } yield tokenString(index)
3636
3737 private val interpolationPrefixes =
Original file line number Diff line number Diff line change 1+ scala> def f(erased a: Int): Int = ???
2+ def f(erased a: Int): Int
You can’t perform that action at this time.
0 commit comments