File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
compiler/src/dotty/tools/dotc/config Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ object Feature:
26
26
val dependent = experimental(" dependent" )
27
27
val erasedDefinitions = experimental(" erasedDefinitions" )
28
28
val symbolLiterals : TermName = deprecated(" symbolLiterals" )
29
+ val macros = experimental(" macros" )
29
30
30
31
val experimentalWarningMessage = " Experimental features may only be used with nightly or snapshot version of compiler."
31
32
@@ -36,8 +37,8 @@ object Feature:
36
37
37
38
def isExperimental (feature : TermName ): Boolean =
38
39
feature match
39
- case QualifiedName (nme.experimental, _) => true
40
- case _ => true
40
+ case QualifiedName (nme.experimental, _) => feature != macros
41
+ case _ => false
41
42
42
43
/** Is `feature` enabled by by a command-line setting? The enabling setting is
43
44
*
You can’t perform that action at this time.
0 commit comments