From 84c1f642f56256d15338c4f619371cccbc86ca2f Mon Sep 17 00:00:00 2001 From: playX Date: Tue, 17 May 2022 23:35:05 +0000 Subject: [PATCH] checker: c2v fixed array fix (#14436) --- vlib/v/checker/check_types.v | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vlib/v/checker/check_types.v b/vlib/v/checker/check_types.v index 94c6ca7e59..bae21577a4 100644 --- a/vlib/v/checker/check_types.v +++ b/vlib/v/checker/check_types.v @@ -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_ {