a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
41 lines
412 B
C#
41 lines
412 B
C#
using System;
|
|
|
|
namespace Bug
|
|
{
|
|
public class A : B
|
|
{
|
|
public A ()
|
|
{
|
|
var dingus = new B ();
|
|
|
|
EventHandler a = delegate {
|
|
int prop = dingus.Prop;
|
|
Test ();
|
|
};
|
|
|
|
a ();
|
|
}
|
|
|
|
void Test ()
|
|
{
|
|
}
|
|
|
|
public static int Main ()
|
|
{
|
|
new A ();
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
public class B
|
|
{
|
|
public B ()
|
|
{
|
|
}
|
|
|
|
public int Prop { get { return 1; } }
|
|
}
|
|
|
|
public delegate void EventHandler ();
|
|
}
|