diff options
Diffstat (limited to 'compiler/semstmts.nim')
-rwxr-xr-x | compiler/semstmts.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim index d729a691f..e7051231b 100755 --- a/compiler/semstmts.nim +++ b/compiler/semstmts.nim @@ -50,8 +50,8 @@ proc semIf(c: PContext, n: PNode): PNode = case it.kind of nkElifBranch: checkSonsLen(it, 2) - openScope(c.tab) it.sons[0] = forceBool(c, semExprWithType(c, it.sons[0])) + openScope(c.tab) it.sons[1] = semStmt(c, it.sons[1]) closeScope(c.tab) of nkElse: |