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

repl: add more stats and tests; compiler: tcc fixes

This commit is contained in:
Delyan Angelov
2019-09-16 00:41:12 +03:00
committed by Alexander Medvednikov
parent ff4ef337da
commit 854de4e7e0
8 changed files with 79 additions and 10 deletions

View File

@ -330,7 +330,7 @@ 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(' 0 /* v empty struct initialization */ ')
p.gen(' EMPTY_STRUCT_INITIALIZATION ')
}
}
}