summary refs log tree commit diff stats
path: root/compiler/semexprs.nim
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2017-04-09 22:59:24 +0300
committerZahary Karadjov <zahary@gmail.com>2017-04-09 22:59:24 +0300
commit987b522071fcf35b59d633bafd7d312cdb385c1f (patch)
tree714dafe8e8fba69bbe705a6d92335e106175f960 /compiler/semexprs.nim
parent03172bef6f58a2176c08253de44339ad9fce15d5 (diff)
downloadNim-987b522071fcf35b59d633bafd7d312cdb385c1f.tar.gz
fix the do notation when used with procs
Diffstat (limited to 'compiler/semexprs.nim')
-rw-r--r--compiler/semexprs.nim3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/semexprs.nim b/compiler/semexprs.nim
index fff16092c..f925a65af 100644
--- a/compiler/semexprs.nim
+++ b/compiler/semexprs.nim
@@ -2327,8 +2327,7 @@ proc semExpr(c: PContext, n: PNode, flags: TExprFlags = {}): PNode =
   of nkCurly: result = semSetConstr(c, n)
   of nkBracket: result = semArrayConstr(c, n, flags)
   of nkObjConstr: result = semObjConstr(c, n, flags)
-  of nkLambda: result = semLambda(c, n, flags)
-  of nkDo: result = semDo(c, n, flags)
+  of nkLambdaKinds: result = semLambda(c, n, flags)
   of nkDerefExpr: result = semDeref(c, n)
   of nkAddr:
     result = n