projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #2646 from ludovic-henry/fix-processwatch-dispose
[mono.git]
/
mcs
/
errors
/
cs1622-4.cs
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
}