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 #2314 from lambdageek/dev/local-handles
[mono-project.git]
/
mcs
/
errors
/
cs0126-3.cs
blob
5d0052d776ef0b75020d0b8513aa80ff52f32f70
1
// CS0126: An object of a type convertible to `int' is required for the return statement
2
// Line: 15
3
4
using
System
.
Threading
.
Tasks
;
5
6
class
MainClass
7
{
8
public static void
Main
()
9
{
10
Task
<
C
>
v
=
null
;
11
12
Task
.
Run
(
async
() => {
13
await
Task
.
Yield
();
14
if
(
v
==
null
) {
15
return
;
16
}
17
18
return
1
;
19
});
20
}
21
}
22
23
public class
C
24
{
25
string
Id { get; set; }
26
}