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

parser: short struct syntax for all structs

This commit is contained in:
Alexander Medvednikov
2020-02-18 16:25:09 +01:00
parent 67756c53dc
commit 4de8d3ae8c
2 changed files with 5 additions and 3 deletions

View File

@@ -203,9 +203,14 @@ struct Config {
fn foo_config(c Config) {
}
fn foo2(u User) {
}
fn test_config() {
foo_config({n: 10, def: 20})
foo_config({})
foo2({name:'Peter'})
}