ui: skip initialization warning for now
							parent
							
								
									8ea0c08a38
								
							
						
					
					
						commit
						4c55d3677d
					
				| 
						 | 
					@ -421,8 +421,8 @@ fn (p mut Parser) struct_init(typ_ string) string {
 | 
				
			||||||
				continue
 | 
									continue
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
			field_typ := field.typ
 | 
								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')
 | 
									p.warn('reference field `${typ}.${field.name}` must be initialized')
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
			// init map fields
 | 
								// init map fields
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue