Skip to content

Commit 9119004

Browse files
committed
allow FlagSet argument to modifier error msg
1 parent 9522b0f commit 9119004

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/reporting/messages.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 = ""

0 commit comments

Comments
 (0)