diff options
author | Martin Baulig <martin@novell.com> | 2004-04-29 20:23:56 +0400 |
---|---|---|
committer | Martin Baulig <martin@novell.com> | 2004-04-29 20:23:56 +0400 |
commit | fbc1b60b3406c5ca340973c74282c3e76484fc33 (patch) | |
tree | eac5369f3acb3244ff1096539f96b965da8a0da1 /mcs/tests/test-247.cs | |
parent | 71c423f5cf38926e53af306ddc8a04e33ce0134f (diff) |
2004-04-29 Martin Baulig <martin@ximian.com>
* test-246.cs, test-247.cs: New tests for #52597.
svn path=/trunk/mcs/; revision=26309
Diffstat (limited to 'mcs/tests/test-247.cs')
-rw-r--r-- | mcs/tests/test-247.cs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/mcs/tests/test-247.cs b/mcs/tests/test-247.cs new file mode 100644 index 00000000000..32a09f2f9a6 --- /dev/null +++ b/mcs/tests/test-247.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections; + +struct Blah : IEnumerable { + IEnumerator IEnumerable.GetEnumerator () { + return new ArrayList ().GetEnumerator (); + } +} + +class B { + static void Main () { + foreach (object o in new Blah ()) + ; + } +} |