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
[sgen] Don't trigger collections during allocation of thread objects (#17970)
[mono-project.git]
/
mcs
/
errors
/
cs4011-2.cs
blob
c4bc3c88be963180c4c786e28c3fef0032a0b73a
1
// CS4011: The awaiter type `int' must have suitable IsCompleted and GetResult members
2
// Line: 16
3
4
static class
S
5
{
6
public static int
GetAwaiter
(
this int
i
)
7
{
8
return
1
;
9
}
10
}
11
12
class
A
13
{
14
static async void
Test
()
15
{
16
await
9
;
17
}
18
}