mirror of
https://github.com/vlang/v.git
synced 2025-09-11 16:36:20 -04: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
@ -154,7 +154,9 @@ pub fn (mut ct ComptimeInfo) get_type(node ast.Expr) ast.Type {
|
|||||||
}
|
}
|
||||||
return f.return_type
|
return f.return_type
|
||||||
} else if node is ast.IndexExpr && ct.is_comptime_var(node.left) {
|
} 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
|
return ast.void_type
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user