checker: c2v fixed array fix (#14436)

playX 2022-05-17 23:35:05 +00:00 committed by Jef Roosens
parent a2985d652a
commit 84c1f642f5
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
1 changed files with 3 additions and 0 deletions

View File

@ -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() { && (expected_sym.info as ast.ArrayFixed).elem_type.is_any_kind_of_pointer() {
return true 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_ { if got_sym.kind == .enum_ {