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

44 lines
395 B
C#

public class A
{
public static int Main ()
{
var a = new A ();
a.Test ();
if (a.Properties.P2.Value != 1)
return 1;
return 0;
}
S s = new S (55);
void Test ()
{
Properties.P2.Value = 1;
}
internal S Properties {
get { return s; }
}
}
struct S
{
C c;
public S (int i)
{
c = new C ();
}
public C P2
{
get { return c; }
}
}
class C
{
public int Value;
}