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