v2: fix type resolving

pull/3690/head
joe-conigliaro 2020-02-08 22:14:53 +11:00 committed by GitHub
parent 9e9bdc32ea
commit e01c76c895
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -1256,6 +1256,7 @@ fn (p mut Parser) add_unresolved(key string, expr ast.Expr) table.TypeRef {
idx = p.table.unresolved_idxs[key] idx = p.table.unresolved_idxs[key]
} }
else { else {
p.table.unresolved_idxs[key] = idx
p.unresolved << expr p.unresolved << expr
} }
t := table.TypeRef{ t := table.TypeRef{