Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

38 lines
495 B
C#

public class Parent
{
public Parent () { }
private Collide Collide;
}
public class Child : Parent
{
public class Nested
{
public readonly Collide Test;
public Nested ()
{
Test = Collide.Die;
}
}
}
public class Collide
{
public Collide (int a)
{
this.A = a;
}
public readonly int A;
public static readonly Collide Die = new Collide (5);
public static int Main ()
{
Child.Nested nested = new Child.Nested ();
if (nested.Test.A != 5)
return 1;
return 0;
}
}