1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

checker: check $if else

This commit is contained in:
Alexander Medvednikov 2020-03-22 14:56:13 +01:00
parent ce73ced932
commit c0df54b7d3

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 {