[LoongArch64] Part-5:add loongarch support in some files for LoongArch64. (#21769)
[mono-project.git] / mcs / tests / gtest-271.cs
blobdb287e839078e86e38b5f73e2d20513c04c75f5c
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 public static void Main ()
36 Foo<X,Test<X>> foo = new Foo<X,Test<X>> ();
37 foreach (Test<X> test in foo)