mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
9 lines
144 B
V
9 lines
144 B
V
fn test_array_of_anon_fn_call() {
|
|
xs := [fn (s string) (string, u32) {
|
|
return s, 0
|
|
}]
|
|
r, n := xs[0]('e')
|
|
assert n == 0
|
|
assert r == 'e'
|
|
}
|