Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Dec 30, 2024
1 parent 152d97b commit b57bca7
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions vlib/v/tests/skip_unused/generic_iterator_loop.vv
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
module main

interface IFoo {
next() ?Foo
}

struct Foo {}

fn (f Foo) next() ?Foo {
Expand All @@ -21,11 +17,6 @@ fn loop[T](iter T) {
}
}

fn loop2(iter IFoo) {
for _ in iter {
}
}

fn main() {
loop(Foo{})
loop(Bar{})
Expand Down

0 comments on commit b57bca7

Please sign in to comment.