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

v: run cast expr through checker

This commit is contained in:
Joe Conigliaro 2020-03-07 00:36:32 +11:00
parent 6b6031a3d9
commit 89cbe76193

View File

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