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
update readme (#21797)
[mono-project.git]
/
mcs
/
errors
/
cs4011-4.cs
blob
edb71ee0b574942157873cd4e2826fd162bed15a
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
}