projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #3769 from evincarofautumn/fix-verify-before-allocs
[mono.git]
/
mcs
/
errors
/
cs4011-4.cs
1
// CS4011: The awaiter type `A' must have suitable IsCompleted and GetResult members
2
// Line: 16
3
4
static class S
5
{
6
public static A GetAwaiter (this int i)
7
{
8
return new A ();
9
}
10
}
11
12
class A
13
{
14
bool IsCompleted {
15
get {
16
return true;
17
}
18
}
19
20
void OnCompleted (System.Action a)
21
{
22
}
23
24
static async void Test ()
25
{
26
await 9;
27
}
28
}