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
Remove useless ip += from MINT_JMP, it is assigned later. (#19217)
[mono-project.git]
/
mcs
/
errors
/
cs4029.cs
blob
14fce4f458bb2cd4a69c03611a124a098eca1e7a
1
// CS4029: Cannot return an expression of type `void'
2
// Line: 15
3
4
using
System
;
5
using
System
.
Threading
.
Tasks
;
6
7
class
C
8
{
9
static void
Foo
<
T
> (
Func
<
Task
<
T
>>
f
)
10
{
11
}
12
13
static void
Main
()
14
{
15
Foo
(
async
() => {
16
return await
Task
.
Factory
.
StartNew
(() =>
{ }
);
17
});
18
}
19
}