1 | && c.table.cur_concrete_types.len == 0 { |
2 | pos := type_sym.name.last_index('.') or { -1 } |
3 | first_letter := type_sym.name[pos + 1] |
4 | - if !first_letter.is_capital() && type_sym.kind != .placeholder { |
5 | - c.error('cannot initialize builtin type `$type_sym.name`', node.pos) |
6 | + if !first_letter.is_capital() && type_sym.kind != .placeholder |
7 | + && !type_sym.name.starts_with('_VAnonStruct') { |
8 | + s := type_sym.name |
9 | + x := s.starts_with('_') |
10 | + |
11 | + c.error('cannot initialize builtin type1 $x "$s" "${s[..4]}" `$type_sym.name`', |
12 | + node.pos) |
13 | } |
14 | } |
15 | if type_sym.kind == .sum_type && node.fields.len == 1 { |
16 | |