projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #4431 from vkargov/vk-leaking-points
[mono.git]
/
mcs
/
tests
/
test-async-39.cs
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
}