mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
12 lines
149 B
V
12 lines
149 B
V
struct Test {
|
|
mut:
|
|
data int
|
|
}
|
|
|
|
fn test_map_selector_assign() {
|
|
mut m := map[int]Test{}
|
|
m[0].data = 1
|
|
println(m[0].data)
|
|
assert m[0].data == 1
|
|
}
|