1
0
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:
joe-conigliaro 2020-01-25 12:11:07 +11:00 committed by Alexander Medvednikov
parent 7d797090ff
commit 71b50ae7fd

View File

@ -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('*')