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
Make StringComparer.Create throw ArgumentNullException (#26570)
[mono-project.git]
/
mcs
/
errors
/
cs1622-4.cs
blob
8fa41c1a08fe46cf2c1d252a48d89e54e9ef825c
1
// CS1622: Cannot return a value from iterators. Use the yield return statement to return a value, or yield break to end the iteration
2
// Line: 21
3
4
using
System
.
Collections
.
Generic
;
5
6
namespace
McsDiff
7
{
8
class
MyObj
9
{
10
}
11
12
class
MainClass
13
{
14
protected static
IEnumerable
<
MyObj
>
GetStuff
()
15
{
16
yield return null
;
17
18
try
{
19
}
20
catch
{
21
return true
;
22
}
23
}
24
}
25
}