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
[ilasm] Don't break arguments compatiblity
[mono-project.git]
/
mcs
/
errors
/
cs4008.cs
blob
f382fa49a6eba822307e5f372fa11a06db180ef0
1
// CS4008: Cannot await void method `X.Foo()'. Consider changing method return type to `Task'
2
// Line: 10
3
4
using
System
.
Threading
.
Tasks
;
5
6
class
X
7
{
8
static async void
Test
()
9
{
10
await
Foo
();
11
}
12
13
static async void
Foo
()
14
{
15
await
Task
.
FromResult
(
1
);
16
}
17
}