From 158835f12fc22641167c4114914f8edf659b619a Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Sat, 1 Jul 2023 11:21:36 -0300 Subject: [PATCH] fix --- vlib/v/checker/struct.v | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vlib/v/checker/struct.v b/vlib/v/checker/struct.v index 25d5893daed60a..54e303cf0beca3 100644 --- a/vlib/v/checker/struct.v +++ b/vlib/v/checker/struct.v @@ -661,8 +661,7 @@ fn (mut c Checker) struct_init(mut node ast.StructInit, is_field_zero_struct_ini } if !field.typ.has_flag(.option) && sym.kind == .interface_ && (!has_noinit && sym.language != .js) && !node.has_update_expr { - // TODO: should be an error instead, but first `ui` needs updating. - c.note('interface field `${type_sym.name}.${field.name}` must be initialized', + c.error('interface field `${type_sym.name}.${field.name}` must be initialized', node.pos) } // Do not allow empty uninitialized sum types