2004-08-28 Martin Baulig <martin@ximian.com>
[mono.git] / mcs / tests / gen-73.cs
1 using System;
2 using System.Collections.Generic;
3
4 class MyList<T> : IEnumerable<T>
5 {
6         public IEnumerator<T> GetEnumerator ()
7         {
8                 yield break;
9         }
10 }
11
12 struct Foo<T>
13 {
14         public readonly T Data;
15   
16         public Foo (T data)
17         {
18                 this.Data = data;
19         }
20 }
21
22 class X
23 {
24         static void Main ()
25         {
26                 MyList<Foo<int>> list = new MyList <Foo<int>> ();
27                 foreach (Foo<int> foo in list)
28                         ;
29         }
30 }