mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
10 lines
168 B
V
10 lines
168 B
V
fn test_nested_map_of_fn_call() {
|
|
mut a := map[string]map[string]fn () int{}
|
|
a['a']['a'] = fn () int {
|
|
return 0
|
|
}
|
|
b := a['a']['a']()
|
|
println(b)
|
|
assert b == 0
|
|
}
|