summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2015-02-20 19:39:49 +0100
committerAraq <rumpf_a@web.de>2015-02-20 20:01:25 +0100
commit77406dd59c6e3afc66903227d50ae3b54d4a7540 (patch)
treedc3788d52a9a81c3d3079a9a3a1609fb16ab1ef5 /compiler
parentaef7be2e79831f4cdbd3292a7c5060e403bbff5e (diff)
downloadNim-77406dd59c6e3afc66903227d50ae3b54d4a7540.tar.gz
fixes #2134
Diffstat (limited to 'compiler')
-rw-r--r--compiler/semfields.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semfields.nim b/compiler/semfields.nim
index 8d01a85d5..e086e73f8 100644
--- a/compiler/semfields.nim
+++ b/compiler/semfields.nim
@@ -156,7 +156,7 @@ proc semForFields(c: PContext, n: PNode, m: TMagic): PNode =
   dec(c.p.nestedLoopCounter)
   # for TR macros this 'while true: ...; break' loop is pretty bad, so
   # we avoid it now if we can:
-  if hasSonWith(stmts, nkBreakStmt):
+  if containsNode(stmts, {nkBreakStmt}):
     var b = newNodeI(nkBreakStmt, n.info)
     b.add(ast.emptyNode)
     stmts.add(b)