From e01c76c895f340ea838806a382372c22c0d2f9d8 Mon Sep 17 00:00:00 2001 From: joe-conigliaro Date: Sat, 8 Feb 2020 22:14:53 +1100 Subject: [PATCH] v2: fix type resolving --- vlib/v/parser/parser.v | 1 + 1 file changed, 1 insertion(+) diff --git a/vlib/v/parser/parser.v b/vlib/v/parser/parser.v index 4d399baccb..60bdc33e24 100644 --- a/vlib/v/parser/parser.v +++ b/vlib/v/parser/parser.v @@ -1256,6 +1256,7 @@ fn (p mut Parser) add_unresolved(key string, expr ast.Expr) table.TypeRef { idx = p.table.unresolved_idxs[key] } else { + p.table.unresolved_idxs[key] = idx p.unresolved << expr } t := table.TypeRef{