v: run cast expr through checker

pull/3944/head
Joe Conigliaro 2020-03-07 00:36:32 +11:00
parent 6b6031a3d9
commit 89cbe76193
1 changed files with 1 additions and 0 deletions

View File

@ -539,6 +539,7 @@ pub fn (c mut Checker) expr(node ast.Expr) table.Type {
return table.bool_type
}
ast.CastExpr {
c.expr(it.expr)
return it.typ
}
ast.CallExpr {