mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
fix empty config struct with msvc
This commit is contained in:
parent
7d797090ff
commit
71b50ae7fd
@ -503,7 +503,7 @@ fn (p mut Parser) gen_struct_init(typ string, t &Type) bool {
|
||||
// Handle empty config ({})
|
||||
if is_config && p.tok == .rcbr {
|
||||
p.check(.rcbr)
|
||||
p.gen('($typ) {}')
|
||||
p.gen('($typ) {EMPTY_STRUCT_INITIALIZATION}')
|
||||
return true
|
||||
}
|
||||
ptr := typ.contains('*')
|
||||
|
Loading…
Reference in New Issue
Block a user