v/vlib/v/fmt/tests/anon_fn_as_param_keep.vv

12 lines
172 B
V

struct Row {
id int
}
pub fn (a []Row) reduce(iter fn (int, int) int, accum_start int) int {
iter(accum_start)
}
pub fn test_anon_fn_void(func fn ()) int {
return 0
}