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 {
169
169
" <noprefix>"
170
170
case tp : MethodType =>
171
171
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) ~
173
175
(if (tp.resultType.isInstanceOf [MethodType ]) " )" else " ): " ) ~
174
176
toText(tp.resultType)
175
177
}
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ object SyntaxHighlighting {
31
31
private val tripleQs = Console .RED_B + " ???" + NoColor
32
32
33
33
private val keywords : Seq [String ] = for {
34
- index <- IF to ENUM // All alpha keywords
34
+ index <- IF to ERASED // All alpha keywords
35
35
} yield tokenString(index)
36
36
37
37
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