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-90.cs
blob
8b1adc66e4230133adeb5a8f2aa6a44d538b8e8e
1
using
System
.
Threading
.
Tasks
;
2
3
static class
Y
4
{
5
public static string
ExCall
(
this
X x
)
6
{
7
return null
;
8
}
9
}
10
11
class
X
12
{
13
static
X
Test
(
object
o
)
14
{
15
return null
;
16
}
17
18
X Prop { get; set;}
19
20
X
Call
()
21
{
22
return null
;
23
}
24
25
public static void
Main
()
26
{
27
var
x
=
new
X
();
28
x
.
Test
().
Wait
();
29
}
30
31
async
Task
Test
()
32
{
33
var
x
=
X
.
Test
(
await
Task
.
FromResult
(
1
))?.
Prop
?.
ExCall
();
34
}
35
}