diff options
Diffstat (limited to 'tests/foreach/collection-next-value-void.test')
-rw-r--r-- | tests/foreach/collection-next-value-void.test | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/foreach/collection-next-value-void.test b/tests/foreach/collection-next-value-void.test new file mode 100644 index 000000000..e8cf5404f --- /dev/null +++ b/tests/foreach/collection-next-value-void.test @@ -0,0 +1,20 @@ +Invalid Code + +void main () { + Test test; + foreach (var t in test) { + + } +} + +public class Test<G> { + public Iterator<G> iterator () { + return new Iterator<G> (); + } +} + +public class Iterator<G> { + public void next_value () { + return; + } +} |