mirror of
https://github.com/vlang/v.git
synced 2025-09-14 23:12:33 +03:00
ui: skip initialization warning for now
This commit is contained in:
parent
8ea0c08a38
commit
4c55d3677d
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue