mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
checker: c2v fixed array fix (#14436)
This commit is contained in:
parent
b5fb848508
commit
a608516b82
@ -56,6 +56,9 @@ pub fn (mut c Checker) check_types(got ast.Type, expected ast.Type) bool {
|
||||
&& (expected_sym.info as ast.ArrayFixed).elem_type.is_any_kind_of_pointer() {
|
||||
return true
|
||||
}
|
||||
if c.check_types((got_sym.info as ast.ArrayFixed).elem_type, (expected_sym.info as ast.ArrayFixed).elem_type) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
if got_sym.kind == .enum_ {
|
||||
|
Loading…
Reference in New Issue
Block a user