Merged into single file, added assertions
[mono.git] / mcs / tests / test-247.cs
1 using System;
2 using System.Collections;
3
4 struct Blah : IEnumerable {
5         IEnumerator IEnumerable.GetEnumerator () {
6                 return new ArrayList ().GetEnumerator ();
7         }
8 }
9
10 class B  {
11         static void Main () {
12                 foreach (object o in new Blah ())
13                         ;
14         }
15 }