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
[interp] Reduce computation under calc_section mutex
[mono-project.git]
/
mcs
/
tests
/
test-async-48.cs
blob
a0aefb1cc038944182e562d6a46f860de3ec7a86
1
using
System
.
Threading
.
Tasks
;
2
using
System
;
3
4
public class
App
5
{
6
X _x
=
new
X
();
7
8
public async
Task
Test
()
9
{
10
await
Task
.
Run
(
new
Func
<
Task
> (
async
() =>
_x
.
ToString
()));
11
}
12
}
13
14
class
X
15
{
16
public static void
Main
()
17
{
18
var
app
=
new
App
();
19
app
.
Test
().
Wait
();
20
}
21
}