mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
v2: reset expr_mod after struct_init type is parsed
This commit is contained in:
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
Block a user