mirror of
https://github.com/vlang/v.git
synced 2025-09-14 06:52:36 +03:00
fix empty config struct with msvc
This commit is contained in:
parent
7d797090ff
commit
71b50ae7fd
1 changed files with 1 additions and 1 deletions
|
@ -503,7 +503,7 @@ fn (p mut Parser) gen_struct_init(typ string, t &Type) bool {
|
||||||
// Handle empty config ({})
|
// Handle empty config ({})
|
||||||
if is_config && p.tok == .rcbr {
|
if is_config && p.tok == .rcbr {
|
||||||
p.check(.rcbr)
|
p.check(.rcbr)
|
||||||
p.gen('($typ) {}')
|
p.gen('($typ) {EMPTY_STRUCT_INITIALIZATION}')
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
ptr := typ.contains('*')
|
ptr := typ.contains('*')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue