mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
v2: fix map_init return type in checker
This commit is contained in:
parent
00dcaf0e04
commit
9978fb3e2c
@ -812,7 +812,7 @@ pub fn (c mut Checker) map_init(node ast.MapInit) table.Type {
|
||||
c.error('map init: cannot use `$val_type_sym.name` as `$val0_type_sym` for map value', node.pos)
|
||||
}
|
||||
}
|
||||
return c.table.find_or_register_map(key0_type, val0_type)
|
||||
return table.new_type(c.table.find_or_register_map(key0_type, val0_type))
|
||||
}
|
||||
|
||||
// TODO: remove once all exprs/stmts are handled
|
||||
|
Loading…
Reference in New Issue
Block a user