if expression

This commit is contained in:
Ginger Bill
2016-12-30 16:21:45 +00:00
parent 23d32f34e5
commit 2ecafda1d3
6 changed files with 222 additions and 43 deletions
+1 -1
View File
@@ -504,7 +504,7 @@ void check_stmt_internal(Checker *c, AstNode *node, u32 flags) {
check_stmt(c, is->body, mod_flags);
if (is->else_stmt) {
if (is->else_stmt != NULL) {
switch (is->else_stmt->kind) {
case AstNode_IfStmt:
case AstNode_BlockStmt: