From 89cbe761936c17c4e5d16f1ecc4ec83c7652da32 Mon Sep 17 00:00:00 2001 From: Joe Conigliaro Date: Sat, 7 Mar 2020 00:36:32 +1100 Subject: [PATCH] v: run cast expr through checker --- vlib/v/checker/checker.v | 1 + 1 file changed, 1 insertion(+) diff --git a/vlib/v/checker/checker.v b/vlib/v/checker/checker.v index f747cf271f..7d7a711efb 100644 --- a/vlib/v/checker/checker.v +++ b/vlib/v/checker/checker.v @@ -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 {