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

@@ -2835,8 +2835,8 @@ fn (p mut Parser) struct_init(typ string) string {
if i != t.fields.len - 1 {
p.gen(',')
}
did_gen_something = true
}
did_gen_something = true
}
}
// Point{3,4} syntax
@@ -2870,7 +2870,7 @@ fn (p mut Parser) struct_init(typ string) string {
did_gen_something = true
}
if !did_gen_something {
p.gen('0')
p.gen('EMPTY_STRUCT_INITIALIZATION')
}
p.gen('}')
if ptr && !p.is_js {