1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

v2: fix type resolving

This commit is contained in:
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

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]
}
else {
p.table.unresolved_idxs[key] = idx
p.unresolved << expr
}
t := table.TypeRef{