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
[build] Fix warning (#4177)
[mono-project.git]
/
mcs
/
tests
/
gtest-iter-21.cs
blob
5265dd4cb39ec0706b9ff2fbd96632063f480be8
1
using
System
;
2
using
System
.
Collections
.
Generic
;
3
4
class
C
5
{
6
IEnumerable
<
int
>
Test
()
7
{
8
Console
.
WriteLine
(
"init"
);
9
try
{
10
yield return
1
;
11
}
finally
{
12
int
oo
=
4
;
13
Action a
= () =>
Console
.
WriteLine
(
oo
);
14
}
15
16
yield return
2
;
17
}
18
19
public static int
Main
()
20
{
21
var
c
=
new
C
();
22
foreach
(
var
a
in
c
.
Test
())
23
{
24
}
25
26
return
0
;
27
}
28
}