projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #5714 from alexischr/update_bockbuild
[mono.git]
/
mcs
/
tests
/
test-anon-95.cs
1
using System;
2
3
public delegate int D ();
4
5
public abstract class A
6
{
7
protected abstract event D Event;
8
}
9
10
public class B : A
11
{
12
protected override event D Event;
13
14
protected int Run ()
15
{
16
return Event ();
17
}
18
}
19
20
public class C : B
21
{
22
int Test (int i)
23
{
24
Action a = () => base.Event += () => i;
25
a ();
26
return Run ();
27
}
28
29
public static int Main ()
30
{
31
if (new C ().Test (9) != 9)
32
return 1;
33
34
return 0;
35
}
36
}