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

fmt: add keep tests for struct init, fix warnings

This commit is contained in:
Delyan Angelov 2020-05-23 12:05:21 +03:00
parent c690c2f984
commit 43eaec325d
3 changed files with 13 additions and 0 deletions

View File

@ -1,4 +1,5 @@
import os
fn main() {
os.system('echo hi')
}

View File

@ -1,4 +1,5 @@
import os
fn main() {
os.system('echo hi')
}

View File

@ -0,0 +1,11 @@
struct User {
age int
name string
}
fn main() {
u := User{
age: 54
}
println(u)
}