2007-05-25 Jonathan Chambers <joncham@gmail.com>
[mcs.git] / tests / test-201.cs
blobf9fa755de08ffbe88cf977526a2939883c108898
1 public class Parent
3 public Parent () { }
4 private Collide Collide;
7 public class Child : Parent
9 public class Nested
11 public readonly Collide Test;
13 public Nested ()
15 Test = Collide.Die;
20 public class Collide
22 public Collide (int a)
24 this.A = a;
27 public readonly int A;
28 public static readonly Collide Die = new Collide (5);
30 public static int Main ()
32 Child.Nested nested = new Child.Nested ();
33 if (nested.Test.A != 5)
34 return 1;
35 return 0;