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
Take stars out of types where they make more sense.
[mono-project.git]
/
mcs
/
tests
/
test-async-81.cs
blob
591711c420989f552a7399b9e0ab520e0355bd63
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
}