repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
bring Mono Security to monotouch
[mcs.git]
/
tests
/
test-271.cs
blob
0ace0dc57f051a2b5a9e5db3595ea76a3a2676ba
1
using
System
;
2
using
System
.
Collections
;
3
4
class
T
{
5
struct
C
:
IEnumerable
{
6
public
IEnumerator
GetEnumerator
()
7
{
8
return new
ArrayList
().
GetEnumerator
();
9
}
10
}
11
12
static
C
X
()
13
{
14
return new
C
();
15
}
16
17
static void
Main
()
18
{
19
foreach
(
object
o
in
X
())
20
;
21
}
22
}