From eb80accfee3d72281c385b3c28c3c35a9947ecf9 Mon Sep 17 00:00:00 2001 From: Joe Conigliaro Date: Sat, 29 Feb 2020 15:36:39 +1100 Subject: [PATCH] v2: add ParExpr to checker --- vlib/v/checker/checker.v | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vlib/v/checker/checker.v b/vlib/v/checker/checker.v index 44957a722c..1ee352f71f 100644 --- a/vlib/v/checker/checker.v +++ b/vlib/v/checker/checker.v @@ -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 }