We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
-new-transformer
1 parent 56739fe commit 9381714Copy full SHA for 9381714
1 file changed
vlib/v/transformer/array.v
@@ -60,8 +60,13 @@ pub fn (mut t Transformer) array_init(mut node ast.ArrayInit) ast.Expr {
60
}
61
typ: ast.int_type
62
63
- fixed_array_typ := t.table.find_or_register_array_fixed(node.elem_type, len, ast.empty_expr,
+ fixed_array_idx := t.table.find_or_register_array_fixed(node.elem_type, len, ast.empty_expr,
64
false)
65
+ fixed_array_typ := if node.elem_type.has_flag(.generic) {
66
+ ast.new_type(fixed_array_idx).set_flag(.generic)
67
+ } else {
68
+ ast.new_type(fixed_array_idx)
69
+ }
70
fixed_array_arg := ast.CallArg{
71
expr: ast.CastExpr{
72
expr: ast.ArrayInit{
0 commit comments