File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
compiler/src/dotty/tools/dotc/parsing Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2418,12 +2418,12 @@ object Parsers {
2418
2418
2419
2419
def flagPos (flag : FlagSet ) = mods.mods.find(_.flags == flag).get.pos
2420
2420
if (mods is Abstract )
2421
- syntaxError(hl """ ${Abstract } modifier cannot be used for objects """ , flagPos(Abstract ))
2421
+ syntaxError(hl """ ${Abstract .toString } modifier cannot be used for objects """ , flagPos(Abstract ))
2422
2422
if (mods is Sealed )
2423
- syntaxError(hl """ ${Sealed } modifier is redundant for objects """ , flagPos(Sealed ))
2423
+ syntaxError(hl """ ${Sealed .toString } modifier is redundant for objects """ , flagPos(Sealed ))
2424
2424
// Maybe this should be an error; see https://github.com/scala/bug/issues/11094.
2425
2425
if (mods is Final )
2426
- warning(hl """ ${Final } modifier is redundant for objects """ , source atPos flagPos(Final ))
2426
+ warning(hl """ ${Final .toString } modifier is redundant for objects """ , source atPos flagPos(Final ))
2427
2427
2428
2428
finalizeDef(ModuleDef (name, template), mods, start)
2429
2429
}
You can’t perform that action at this time.
0 commit comments