repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
remove NotWorking
[mcs.git]
/
tests
/
test-anon-14.cs
blob
572e9bc66bf5ea8abd8870c11affdf50cd972237
1
// Compiler options: -langversion:default
2
3
//
4
// Anonymous method group conversions
5
//
6
7
class
X
{
8
delegate void
T
();
9
static event
T Click
;
10
11
static void
Method
()
12
{
13
}
14
15
static void
Main
()
16
{
17
T t
;
18
19
// Method group assignment
20
t
=
Method
;
21
22
Click
+=
Method
;
23
}
24
}