checker: check $if else

pull/4103/head
Alexander Medvednikov 2020-03-22 14:56:13 +01:00
parent ce73ced932
commit c0df54b7d3
1 changed files with 3 additions and 0 deletions

View File

@ -532,6 +532,9 @@ fn (c mut Checker) stmt(node ast.Stmt) {
ast.CompIf {
// c.expr(it.cond)
c.stmts(it.stmts)
if it.has_else {
c.stmts(it.else_stmts)
}
}
ast.ConstDecl {
for i, expr in it.exprs {