summaryrefslogtreecommitdiff
path: root/mcs/errors/cs4011-3.cs
blob: df14fa33b73f0514557f1974144bd61134d1ff34 (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
// CS4011: The awaiter type `A' must have suitable IsCompleted and GetResult members
// Line: 16

static class S
{
	public static A GetAwaiter (this int i)
	{
		return new A ();
	}
}

class A
{
	int IsCompleted {
		get {
			return 1;
		}
	}
	
	static async void Test ()
	{
		await 9;
	}
}