From 6f577321f17f111ff8d74bc1aabe41f2dabc880d Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Sat, 22 Feb 2020 12:58:16 +0100 Subject: [PATCH] checker: fix build --- vlib/v/checker/checker.v | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vlib/v/checker/checker.v b/vlib/v/checker/checker.v index 7e3f2e360a..1d957b91e7 100644 --- a/vlib/v/checker/checker.v +++ b/vlib/v/checker/checker.v @@ -195,6 +195,7 @@ pub fn (c mut Checker) check_method_call_expr(method_call_expr ast.MethodCallExp } } c.error('type `$typ_sym.name` has no method `$method_call_expr.name`', method_call_expr.pos) + return table.void_type } pub fn (c mut Checker) selector_expr(selector_expr ast.SelectorExpr) table.Type { @@ -221,6 +222,7 @@ pub fn (c mut Checker) selector_expr(selector_expr ast.SelectorExpr) table.Type else { c.error('unknown field `${typ_sym.name}.$field_name`', selector_expr.pos) } + return table.void_type } // TODO: non deferred