blob: 97abd6957d7b5b2eee9dc445fffe950474d0e764 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
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 ();
}
|