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:
committed by
Alexander Medvednikov
parent
5f43a61e0d
commit
cbd4478b5e
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user