1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

ui: skip initialization warning for now

This commit is contained in:
Alexander Medvednikov 2020-01-13 13:40:45 +01:00
parent 8ea0c08a38
commit 4c55d3677d

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