repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[genproj] Sort embedded resources by name
[mono-project.git]
/
mcs
/
tests
/
gtest-lambda-35.cs
blob
4cfd316d42c990fe8d2dc22fa640e1441bec5a1f
1
using
System
;
2
3
class
C
4
{
5
static int
Foo
(
Func
<
short
>
b
)
6
{
7
return
1
;
8
}
9
10
static int
Foo
(
Func
<
int
>
a
)
11
{
12
return
2
;
13
}
14
15
static int
Main
()
16
{
17
if
(
Foo
(() =>
1
) !=
2
)
18
return
1
;
19
20
if
(
Foo
(() => (
short
)
1
) !=
1
)
21
return
2
;
22
23
if
(
Foo
(() => (
byte
)
1
) !=
1
)
24
return
3
;
25
26
Console
.
WriteLine
(
"ok"
);
27
return
0
;
28
}
29
30
}