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:
parent
ce73ced932
commit
c0df54b7d3
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user