diff options
author | Miran <narimiran@disroot.org> | 2020-09-08 14:25:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-08 14:25:25 +0200 |
commit | c49b88163c12d18506ef43e4d26abd5d76f68359 (patch) | |
tree | 522590ff24ad68767fb00f69f51a7a062d4cb973 /compiler/semstmts.nim | |
parent | a81610230ddacf33f11e8cc57a379f12a985f8b6 (diff) | |
download | Nim-c49b88163c12d18506ef43e4d26abd5d76f68359.tar.gz |
"for-loop macros" are no longer an experimental feature (#15288)
Diffstat (limited to 'compiler/semstmts.nim')
-rw-r--r-- | compiler/semstmts.nim | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim index 5599eb3ef..2c3ff2bea 100644 --- a/compiler/semstmts.nim +++ b/compiler/semstmts.nim @@ -890,9 +890,8 @@ proc handleCaseStmtMacro(c: PContext; n: PNode; flags: TExprFlags): PNode = proc semFor(c: PContext, n: PNode; flags: TExprFlags): PNode = checkMinSonsLen(n, 3, c.config) - if forLoopMacros in c.features: - result = handleForLoopMacro(c, n, flags) - if result != nil: return result + result = handleForLoopMacro(c, n, flags) + if result != nil: return result openScope(c) result = n n[^2] = semExprNoDeref(c, n[^2], {efWantIterator}) |