summary refs log tree commit diff stats
path: root/compiler/semparallel.nim
diff options
context:
space:
mode:
authorYuriy Glukhov <yuriy.glukhov@gmail.com>2015-09-03 19:20:23 +0300
committerYuriy Glukhov <yuriy.glukhov@gmail.com>2015-09-04 20:50:29 +0300
commit49869a2b10d73dac719690f3796a0584be38c0bb (patch)
treebcbd3f9bf40779ba23c2733dfb563237b5e72b8d /compiler/semparallel.nim
parent178275f49403012ca3d774f8cadcc2836eea9508 (diff)
downloadNim-49869a2b10d73dac719690f3796a0584be38c0bb.tar.gz
when nimvm stmt proof of concept
Diffstat (limited to 'compiler/semparallel.nim')
-rw-r--r--compiler/semparallel.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semparallel.nim b/compiler/semparallel.nim
index fbcd6b6da..36c63d038 100644
--- a/compiler/semparallel.nim
+++ b/compiler/semparallel.nim
@@ -363,7 +363,7 @@ proc analyse(c: var AnalysisCtx; n: PNode) =
             else: internalError(it.info, "slot already has a lower bound")
         if not isSpawned: analyse(c, value)
   of nkCaseStmt: analyseCase(c, n)
-  of nkIfStmt, nkIfExpr: analyseIf(c, n)
+  of nkWhen, nkIfStmt, nkIfExpr: analyseIf(c, n)
   of nkWhileStmt:
     analyse(c, n.sons[0])
     # 'while true' loop?