Skip to content

Commit d95ae78

Browse files
committed
Macros are not experimental
1 parent 06106a7 commit d95ae78

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ object Feature:
2626
val dependent = experimental("dependent")
2727
val erasedDefinitions = experimental("erasedDefinitions")
2828
val symbolLiterals: TermName = deprecated("symbolLiterals")
29+
val macros = experimental("macros")
2930

3031
val experimentalWarningMessage = "Experimental features may only be used with nightly or snapshot version of compiler."
3132

@@ -36,8 +37,8 @@ object Feature:
3637

3738
def isExperimental(feature: TermName): Boolean =
3839
feature match
39-
case QualifiedName(nme.experimental, _) => true
40-
case _ => true
40+
case QualifiedName(nme.experimental, _) => feature != macros
41+
case _ => false
4142

4243
/** Is `feature` enabled by by a command-line setting? The enabling setting is
4344
*

0 commit comments

Comments
 (0)