1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/vlib/v/tests/nested_map_of_fn_call_test.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
}