projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[mini] Fix test compiling when running !MOBILE
[mono.git]
/
mcs
/
tests
/
test-async-81.cs
1
using System;
2
using System.Threading.Tasks;
3
4
class MainClass
5
{
6
public static void Main ()
7
{
8
new MainClass ().Foo ().Wait ();
9
}
10
11
private async Task<int> Foo()
12
{
13
await Task.Delay(1);
14
return 42;
15
}
16
17
private async Task Bar()
18
{
19
Console.WriteLine($"Something {await Foo()}");
20
}
21
}