* ResolvedReference.cs (.ctor): Set 'OriginalItemSpec' and 'ResolvedFrom',
[mcs.git] / tests / gtest-271.cs
blobe29a4e8251d81f4b3c5292a9e15bc519a0cc6dde
1 using System;
2 using System.Collections;
3 using System.Collections.Generic;
5 public class Qux<X,V> : IEnumerable<V>
6 where V : IComparable<V>
8 public IEnumerator<V> GetEnumerator()
10 yield break;
13 IEnumerator IEnumerable.GetEnumerator()
15 yield break;
19 public class Foo<X,V> : Qux<X,V>
20 where V : IComparable<V>
24 public class Test<T> : IComparable<Test<T>>
26 public int CompareTo (Test<T> t)
28 return 0;
32 class X
34 static void Main ()
36 Foo<X,Test<X>> foo = new Foo<X,Test<X>> ();
37 foreach (Test<X> test in foo)