Skip to content

Commit e3df5e2

Browse files
committed
Fix macros exclude for command line settings
1 parent 0df46e7 commit e3df5e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/config/Feature.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ object Feature:
107107
/** Check that experimental compiler options are only set for snapshot or nightly compiler versions. */
108108
def checkExperimentalSettings(using Context): Unit =
109109
for setting <- ctx.settings.language.value
110-
if setting.startsWith("experimental.") && setting != "experimental.scala2macros"
110+
if setting.startsWith("experimental.") && setting != "experimental.macros"
111111
do checkExperimentalFeature(s" $setting")
112112

113113
end Feature

0 commit comments

Comments
 (0)