From 513030dd6b32e937b73f8049a7d7a93fd9f9f57d Mon Sep 17 00:00:00 2001 From: kbkpbot Date: Fri, 12 Sep 2025 19:29:43 +0800 Subject: [PATCH] workaround msvc test bug right now, should fix in anther PR --- vlib/v/gen/c/cgen.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/v/gen/c/cgen.v b/vlib/v/gen/c/cgen.v index fdb4625221..9374e68c8f 100644 --- a/vlib/v/gen/c/cgen.v +++ b/vlib/v/gen/c/cgen.v @@ -7604,7 +7604,7 @@ fn (mut g Gen) type_default_impl(typ_ ast.Type, decode_sumtype bool) string { field_sym := g.table.sym(field.typ) is_option := field.typ.has_flag(.option) if is_option || field.has_default_expr - || field_sym.kind in [.enum, .array_fixed, .array, .map, .string, .bool, .alias, .i8, .i16, .i32, .int, .i64, .u8, .u16, .u32, .u64, .f32, .f64, .char, .voidptr, .byteptr, .charptr, .struct, .chan, .sum_type] { + || field_sym.kind in [.enum, .array_fixed, .array, .map, .string, .bool, .alias, .i8, .i16, .int, .i64, .u8, .u16, .u32, .u64, .f32, .f64, .char, .voidptr, .byteptr, .charptr, .struct, .chan, .sum_type] { if sym.language == .c && !field.has_default_expr && !is_option { continue }