We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06106a7 commit d95ae78Copy full SHA for d95ae78
compiler/src/dotty/tools/dotc/config/Feature.scala
@@ -26,6 +26,7 @@ object Feature:
26
val dependent = experimental("dependent")
27
val erasedDefinitions = experimental("erasedDefinitions")
28
val symbolLiterals: TermName = deprecated("symbolLiterals")
29
+ val macros = experimental("macros")
30
31
val experimentalWarningMessage = "Experimental features may only be used with nightly or snapshot version of compiler."
32
@@ -36,8 +37,8 @@ object Feature:
36
37
38
def isExperimental(feature: TermName): Boolean =
39
feature match
- case QualifiedName(nme.experimental, _) => true
40
- case _ => true
+ case QualifiedName(nme.experimental, _) => feature != macros
41
+ case _ => false
42
43
/** Is `feature` enabled by by a command-line setting? The enabling setting is
44
*
0 commit comments