summaryrefslogtreecommitdiff
path: root/mcs/errors/cs4011-4.cs
blob: edb71ee0b574942157873cd4e2826fd162bed15a (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
// 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
{
	bool IsCompleted {
		get {
			return true;
		}
	}
	
	void OnCompleted (System.Action a)
	{
	}
	
	static async void Test ()
	{
		await 9;
	}
}