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