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
[amd64] Make inline function in header static
[mono-project.git]
/
mcs
/
tests
/
test-async-09.cs
blob
4171bd7e5be38a5fbe35877c8b32e491de084b62
1
using
System
;
2
using
System
.
Threading
.
Tasks
;
3
4
class
Test
5
{
6
static int
Foo
<
T
> (
Func
<
T
,
Task
<
int
>>
f
)
7
{
8
return
1
;
9
}
10
11
static int
Foo
<
T
> (
Func
<
T
,
Task
<
short
>>
f
)
12
{
13
return
2
;
14
}
15
16
public static int
Main
()
17
{
18
if
(
Foo
(
async
(
string
str
) => (
short
)
1
) !=
2
)
19
return
1
;
20
21
return
0
;
22
}
23
}