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
add comment
[mcs.git]
/
tests
/
gtest-anon-22.cs
blob
292602101e387ac5dbc6a5c001362c0a5c266566
1
using
System
.
Linq
.
Expressions
;
2
3
delegate int
D1
();
4
delegate long
D2
();
5
6
class
C
7
{
8
static int
Foo
(
D1 d
)
9
{
10
return
1
;
11
}
12
13
static int
Foo
(
D2 d
)
14
{
15
return
2
;
16
}
17
18
static int
FooE
(
Expression
<
D1
>
d
)
19
{
20
return
1
;
21
}
22
23
static int
FooE
(
Expression
<
D2
>
d
)
24
{
25
return
2
;
26
}
27
28
public static int
Main
()
29
{
30
if
(
Foo
(
delegate
()
{ return 1; }
) !=
1
)
31
return
1
;
32
33
FooE
(() =>
1
);
34
35
return
0
;
36
}
37
}