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:
@@ -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'})
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user