1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/vlib/compiler/tests/prod/assoc.prod.v
Alexander Medvednikov c7f3413d70 more vfmt fixes
2019-11-10 19:49:19 +03:00

15 lines
192 B
V

struct MyStruct {
s string
}
fn new_st() MyStruct {
return MyStruct{}
}
fn get_st() MyStruct {
r := new_st()
return {r|s:'6'}
}
fn main() {
s := get_st()
println(s)
}