diff --git a/vlib/v/fmt/tests/anon_fn_as_param_keep.vv b/vlib/v/fmt/tests/anon_fn_as_param_keep.vv index 93a97e736c..0bd5e27b13 100644 --- a/vlib/v/fmt/tests/anon_fn_as_param_keep.vv +++ b/vlib/v/fmt/tests/anon_fn_as_param_keep.vv @@ -1,4 +1,8 @@ -pub fn reduce(a []int, iter fn (int, int) int, accum_start int) int { +struct Row{ + id int +} + +pub fn (a []Row) reduce(iter fn (int, int) int, accum_start int) int { iter(accum_start) }