linux-packaging-mono/mcs/tests/test-anon-62.cs
Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

40 lines
372 B
C#

// Bug #79702
public delegate void FooHandler();
public class X
{
private string a;
public X(string a)
{
this.a = a;
}
public static void Main()
{
}
}
public class Y : X
{
private Z a;
public Y(Z a) : base(a.A)
{
this.a = a;
FooHandler handler = delegate {
a.Hello();
};
}
}
public class Z
{
public string A;
public void Hello ()
{
}
}