-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented
compileOption
for experimental
to test if a feature i… (
#23933) …s enabled at compile time. #8644 This doesn't handle the case if `{.push experimental.}` is used, but at least we can test if a feature was enabled globally.
- Loading branch information
1 parent
b215ec3
commit 20043ea
Showing
3 changed files
with
47 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
static: | ||
doAssert compileOption("experimental", "dotOperators") | ||
doAssert compileOption("experimental", "callOperator") | ||
doAssert compileOption("experimental", "parallel") | ||
doAssert compileOption("experimental", "destructor") | ||
doAssert compileOption("experimental", "notnil") | ||
doAssert compileOption("experimental", "dynamicBindSym") | ||
doAssert compileOption("experimental", "codeReordering") | ||
doAssert compileOption("experimental", "compiletimeFFI") | ||
doAssert compileOption("experimental", "vmopsDanger") | ||
doAssert compileOption("experimental", "strictFuncs") | ||
doAssert compileOption("experimental", "views") | ||
doAssert compileOption("experimental", "strictNotNil") | ||
doAssert compileOption("experimental", "strictEffects") | ||
doAssert compileOption("experimental", "flexibleOptionalParams") | ||
doAssert compileOption("experimental", "strictDefs") | ||
doAssert compileOption("experimental", "strictCaseObjects") | ||
doAssert compileOption("experimental", "inferGenericTypes") | ||
doAssert compileOption("experimental", "genericsOpenSym") | ||
doAssert compileOption("experimental", "vtables") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
switch("experimental", "dotOperators") | ||
switch("experimental", "callOperator") | ||
switch("experimental", "parallel") | ||
switch("experimental", "destructor") | ||
switch("experimental", "notnil") | ||
switch("experimental", "dynamicBindSym") | ||
switch("experimental", "codeReordering") | ||
switch("experimental", "compiletimeFFI") | ||
switch("experimental", "vmopsDanger") | ||
switch("experimental", "strictFuncs") | ||
switch("experimental", "views") | ||
switch("experimental", "strictNotNil") | ||
switch("experimental", "strictEffects") | ||
switch("experimental", "flexibleOptionalParams") | ||
switch("experimental", "strictDefs") | ||
switch("experimental", "strictCaseObjects") | ||
switch("experimental", "inferGenericTypes") | ||
switch("experimental", "genericsOpenSym") | ||
switch("experimental", "vtables") |