v2: add ParExpr to checker

pull/3880/head
Joe Conigliaro 2020-02-29 15:36:39 +11:00
parent 6855c746bb
commit eb80accfee
1 changed files with 3 additions and 0 deletions

View File

@ -476,6 +476,9 @@ pub fn (c mut Checker) expr(node ast.Expr) table.Type {
ast.CastExpr {
return it.typ
}
ast.ParExpr {
return c.expr(it.expr)
}
ast.None {
return table.none_type
}