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
[corlib] Add a special method for XI so the linker does not always have to generate it.
[mono-project.git]
/
mcs
/
errors
/
cs1626-2.cs
blob
8894ad780f58510eeca04b81266602f7a1ffc657
1
// CS1626: Cannot yield a value in the body of a try block with a catch clause
2
// Line: 11
3
4
using
System
.
Collections
;
5
6
class
C
:
IEnumerable
7
{
8
public
IEnumerator
GetEnumerator
()
9
{
10
try
{
11
try
{
12
yield return this
;
13
}
14
finally
{}
15
}
16
catch
(
System
.
Exception
) {
17
}
18
}
19
}