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:
parent
8ea0c08a38
commit
4c55d3677d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user