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

parser: fix enum default value in struct

* parser: fix enum default value in struct

* Add a test for the enum default values in structs.

* Fix compilation of vfmt.

* Run vfmt over enum_default_value_in_struct_test.v

* Cleanup spurious , in vfmt output for enum declarations

Co-authored-by: Delyan Angelov <delian66@gmail.com>
This commit is contained in:
Daniel Däschle
2020-04-12 12:35:54 +02:00
committed by GitHub
parent 0ced7116b6
commit 79dad0bca9
8 changed files with 74 additions and 30 deletions

View File

@ -144,7 +144,6 @@ fn main() {
}
exit(1)
}
println('vfmt done')
}
fn (foptions &FormatOptions) format_file(file string) {