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 6137fd5 commit 06250cdCopy full SHA for 06250cd
compiler/src/dotty/tools/dotc/typer/Checking.scala
@@ -433,7 +433,7 @@ object Checking {
433
def checkNoConflict(flag1: FlagSet, flag2: FlagSet, msg: => String) =
434
if (sym.isAllOf(flag1 | flag2)) fail(msg)
435
def checkCombination(flag1: FlagSet, flag2: FlagSet) =
436
- checkNoConflict(flag1, flag2, i"illegal combination of modifiers: `${flag1.flagsString}` and `${flag2.flagsString}` for: $sym")
+ if sym.isAllOf(flag1 | flag2) then fail(i"illegal combination of modifiers: `${flag1.flagsString}` and `${flag2.flagsString}` for: $sym")
437
def checkApplicable(flag: FlagSet, ok: Boolean) =
438
if (!ok && !sym.is(Synthetic))
439
fail(i"modifier `${flag.flagsString}` is not allowed for this definition")
0 commit comments