[LoongArch64] Part-5:add loongarch support in some files for LoongArch64. (#21769)
[mono-project.git] / mcs / tests / gtest-169.cs
blob1d3b467dd3433219be0c174c7a4633afa5e8af3f
1 class list <A> {
2 public class Cons <T> : list <T> { }
3 public class Nil <T> : list <T> { }
6 class C {
7 public static void Rev<T> (list <T> y) {
8 if (y is list<object>.Cons<T>)
9 System.Console.WriteLine ("Cons");
10 if (y is list<object>.Nil<T>)
11 System.Console.WriteLine ("Nil");
15 class M {
16 public static void Main () {
17 C.Rev (new list<object>.Cons <string> ());
18 C.Rev (new list<object>.Nil <string> ());