[tests] Test loading references from LoadFrom and LoadFile contexts
[mono-project.git] / mono / tests / bug-78431.2.cs
blobd759cf31b948bd3c394c156efad1e48bbe6feb11
1 public class Pair <T> {
2 public T fst;
3 public T snd;
6 public class RList <T> {
7 public class Nil : RList <T> {}
8 public class Zero : RList <T> {
9 public RList <Pair <T> > arg;
12 static int _Length (RList <T> xs) {
13 if (xs is Zero)
14 return RList <Pair <T> >._Length (((Zero)xs).arg);
15 else
16 return 0;
18 public int Length {
19 get {
20 return _Length (this);
26 class M {
27 public static void Main() {
28 int x = (new RList<object>.Nil()).Length;