v2: reset expr_mod after struct_init type is parsed
parent
90996269fd
commit
af3159791f
|
@ -513,6 +513,7 @@ pub fn (p mut Parser) parse_ident(is_c bool) ast.Ident {
|
|||
|
||||
fn (p mut Parser) struct_init() ast.StructInit {
|
||||
typ := p.parse_type()
|
||||
p.expr_mod = ''
|
||||
sym := p.table.get_type_symbol(typ)
|
||||
// p.warn('struct init typ=$sym.name')
|
||||
p.check(.lcbr)
|
||||
|
|
Loading…
Reference in New Issue