fix empty config struct with msvc
parent
7d797090ff
commit
71b50ae7fd
|
@ -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…
Reference in New Issue