mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
allow short struct initialization with Config structs
This commit is contained in:
parent
0b235cc893
commit
6b3f54692a
3 changed files with 11 additions and 1 deletions
|
@ -337,6 +337,7 @@ fn (p mut Parser) struct_decl(generic_param_types []string) {
|
|||
// p.fgenln('//kek')
|
||||
}
|
||||
// `User{ foo: bar }`
|
||||
// tok == struct name
|
||||
fn (p mut Parser) struct_init(typ_ string) string {
|
||||
p.is_struct_init = true
|
||||
mut typ := typ_
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue