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
Merge pull request #1861 from saper/home-override
[mono-project.git]
/
mcs
/
tests
/
test-async-39.cs
blob
40138879cae15888747bdce259456e713def706a
1
using
System
;
2
using
System
.
Threading
.
Tasks
;
3
4
public class
CompilerBug
5
{
6
public static void
Main
()
7
{
8
var
res
=
Foo
().
Result
;
9
Console
.
WriteLine
(
res
);
10
return
;
11
}
12
13
static async
Task
<
string
>
Foo
()
14
{
15
Action fnAction
;
16
{
17
fnAction
= () =>
{ }
;
18
}
19
await
Task
.
Delay
(
10
);
20
{
21
fnAction
();
22
}
23
return
"val"
;
24
}
25
}