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
Merge pull request #4926 from BrzVlad/fix-tls-v5
[mono-project.git]
/
mcs
/
errors
/
cs4016.cs
blob
8d3d4359c0b2f5755e2ec6c6e711833d972660f9
1
// CS4016: `C.GetValue()': The return expression type of async method must be `int' rather than `Task<int>'
2
// Line: 12
3
4
using
System
;
5
using
System
.
Threading
.
Tasks
;
6
7
class
C
8
{
9
public async
Task
<
int
>
GetValue
()
10
{
11
await
Task
.
FromResult
(
0
);
12
return
Task
.
FromResult
(
1
);
13
}
14
}