Skip to content

Commit adcf782

Browse files
committed
fix
1 parent 991740c commit adcf782

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

vlib/v/tests/fns/iter_alias_fn_test.v

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,11 @@ fn (mut it Iter) next() ?&MyFn {
1515
}
1616

1717
fn test_main() {
18+
mut c := 0
1819
for p in Iter{} {
1920
println(p)
2021
p()
22+
c += 1
2123
}
24+
assert c == 1
2225
}

0 commit comments

Comments
 (0)