diff options
author | hlaaftana <10591326+hlaaftana@users.noreply.github.com> | 2021-11-23 18:30:17 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-23 16:30:17 +0100 |
commit | 5933aece9b5f7320e8feb2ef610b59d347c74d27 (patch) | |
tree | 27aece97f964cd38242ce60bfabc59b28e05fce7 /compiler | |
parent | 040d23e799e94aa3e0c6b254f1dc708b2eada96b (diff) | |
download | Nim-5933aece9b5f7320e8feb2ef610b59d347c74d27.tar.gz |
`caseStmtMacros` no longer experimental, experimental manual refactor (#19173)
* `caseStmtMacros` no longer experimental, experimental manual refactor * Update doc/manual.rst * apply review suggestions * apply review Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/options.nim | 2 | ||||
-rw-r--r-- | compiler/semstmts.nim | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/compiler/options.nim b/compiler/options.nim index 2feaa2d43..d8e5057f9 100644 --- a/compiler/options.nim +++ b/compiler/options.nim @@ -195,7 +195,7 @@ type notnil, dynamicBindSym, forLoopMacros, # not experimental anymore; remains here for backwards compatibility - caseStmtMacros, + caseStmtMacros, # ditto codeReordering, compiletimeFFI, ## This requires building nim with `-d:nimHasLibFFI` diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim index 36d76608e..f302dd4c3 100644 --- a/compiler/semstmts.nim +++ b/compiler/semstmts.nim @@ -987,10 +987,10 @@ proc semCase(c: PContext, n: PNode; flags: TExprFlags): PNode = else: popCaseContext(c) closeScope(c) - if caseStmtMacros in c.features: - result = handleCaseStmtMacro(c, n, flags) - if result != nil: - return result + #if caseStmtMacros in c.features: + result = handleCaseStmtMacro(c, n, flags) + if result != nil: + return result localError(c.config, n[0].info, errSelectorMustBeOfCertainTypes) return for i in 1..<n.len: |