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 9119004 commit b2d42dcCopy full SHA for b2d42dc
compiler/src/dotty/tools/dotc/typer/Checking.scala
@@ -435,7 +435,7 @@ object Checking {
435
if sym.isAllOf(flag1 | flag2) then fail(i"illegal combination of modifiers: `${flag1.flagsString}` and `${flag2.flagsString}` for: $sym")
436
def checkApplicable(flag: FlagSet, ok: Boolean) =
437
if (!ok && !sym.is(Synthetic))
438
- fail(ModifierNotAllowedForDefinition(Erased))
+ fail(ModifierNotAllowedForDefinition(flag))
439
440
if (sym.is(Inline) &&
441
( sym.is(ParamAccessor) && sym.owner.isClass
0 commit comments