ui: skip initialization warning for now

pull/3422/head
Alexander Medvednikov 2020-01-13 13:40:45 +01:00
parent 8ea0c08a38
commit 4c55d3677d
1 changed files with 2 additions and 2 deletions

View File

@ -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