[LoongArch64] Part-5:add loongarch support in some files for LoongArch64. (#21769)
[mono-project.git] / mcs / tests / gtest-562.cs
blob9cd8d921c90b36bb15c173fccde38c8eb7119630
1 interface IFoo { }
3 abstract class A<T>
5 public T Value;
8 class B<U> : A<B<U>>, IFoo
10 public void Test ()
12 IFoo foo = this;
13 Value = this;
17 class C<U> : A<C<U>.N>, IFoo
19 public void Test ()
21 IFoo foo = this;
22 Value = new N ();
25 public class N
30 class D<U> : A<D<int>>
32 public void Test ()
34 Value = new D<int> ();
38 class E<U> : IFoo where U : A<E<U>>
40 public void Test (U u)
42 IFoo foo = u.Value;
46 static class Application
48 public static int Main ()
50 new B<byte>().Test ();
51 new C<char>().Test ();
52 new D<string>().Test ();
54 return 0;