projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #496 from nicolas-raoul/unit-test-for-issue2907
[mono.git]
/
mcs
/
tests
/
test-async-09.cs
1
// Compiler options: -langversion:future
2
3
using System;
4
using System.Threading.Tasks;
5
6
class Test
7
{
8
static int Foo<T> (Func<T, Task<int>> f)
9
{
10
return 1;
11
}
12
13
static int Foo<T> (Func<T, Task<short>> f)
14
{
15
return 2;
16
}
17
18
public static int Main ()
19
{
20
if (Foo (async (string str) => (short) 1) != 2)
21
return 1;
22
23
return 0;
24
}
25
}