From 4c55d3677d725b36e2b4e0a0c7fa0f83b311c93b Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Mon, 13 Jan 2020 13:40:45 +0100 Subject: [PATCH] ui: skip initialization warning for now --- vlib/compiler/struct.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vlib/compiler/struct.v b/vlib/compiler/struct.v index 3666659da3..951c69a11a 100644 --- a/vlib/compiler/struct.v +++ b/vlib/compiler/struct.v @@ -421,8 +421,8 @@ fn (p mut Parser) struct_init(typ_ string) string { continue } field_typ := field.typ - if !p.builtin_mod && field_typ.ends_with('*') && p.mod != 'os' { - // && + if !p.builtin_mod && field_typ.ends_with('*') && p.mod != 'os' && + p.mod != 'ui' { p.warn('reference field `${typ}.${field.name}` must be initialized') } // init map fields