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