1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

compiler: fix msvc empty struct & enable travis msvc

This commit is contained in:
joe-conigliaro
2019-09-16 20:01:07 +10:00
committed by Alexander Medvednikov
parent 5f43a61e0d
commit cbd4478b5e
5 changed files with 6 additions and 16 deletions

View File

@ -329,9 +329,6 @@ fn (p mut Parser) gen_struct_init(typ string, t Type) bool {
}
else {
p.gen('($typ) {')
if t.fields.len == 1 && t.fields[0].name == '' && t.fields[0].typ.starts_with('EMPTY_STRUCT_DECLARATION') {
p.gen(' EMPTY_STRUCT_INITIALIZATION ')
}
}
}
else {