File tree 2 files changed +2
-2
lines changed
compiler/src/dotty/tools/dotc 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2455,7 +2455,7 @@ import transform.SymUtils._
2455
2455
| """ .stripMargin
2456
2456
}
2457
2457
2458
- class ModifierNotAllowedForDefinition (flag : Flag )(using Context )
2458
+ class ModifierNotAllowedForDefinition (flag : FlagSet )(using Context )
2459
2459
extends SyntaxMsg (ModifierNotAllowedForDefinitionID ) {
2460
2460
def msg = s " Modifier ` ${flag.flagsString}` is not allowed for this definition "
2461
2461
def explain = " "
Original file line number Diff line number Diff line change @@ -435,7 +435,7 @@ object Checking {
435
435
if sym.isAllOf(flag1 | flag2) then fail(i " illegal combination of modifiers: ` ${flag1.flagsString}` and ` ${flag2.flagsString}` for: $sym" )
436
436
def checkApplicable (flag : FlagSet , ok : Boolean ) =
437
437
if (! ok && ! sym.is(Synthetic ))
438
- fail(ModifierNotAllowedForDefinition (Erased ))
438
+ fail(ModifierNotAllowedForDefinition (flag ))
439
439
440
440
if (sym.is(Inline ) &&
441
441
( sym.is(ParamAccessor ) && sym.owner.isClass
You can’t perform that action at this time.
0 commit comments