mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
v.comptime: fix compilation of examples/veb/veb_example.v
with V compiled with tcc on macos
This commit is contained in:
parent
65038a4a2a
commit
9fc3a24ca6
1 changed files with 3 additions and 1 deletions
|
@ -154,7 +154,9 @@ pub fn (mut ct ComptimeInfo) get_type(node ast.Expr) ast.Type {
|
|||
}
|
||||
return f.return_type
|
||||
} else if node is ast.IndexExpr && ct.is_comptime_var(node.left) {
|
||||
return ct.table.value_type(ct.resolver.unwrap_generic(ct.get_type(node.left)))
|
||||
nltype := ct.get_type(node.left)
|
||||
nltype_unwrapped := ct.resolver.unwrap_generic(nltype)
|
||||
return ct.table.value_type(nltype_unwrapped)
|
||||
}
|
||||
return ast.void_type
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue