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
2010-05-19 Jb Evain <jbevain@novell.com>
[mcs.git]
/
tests
/
test-488.cs
blob
62794ff50b836ac6fffe5d5a06b2a1b225ca2f73
1
using
System
.
Collections
;
2
3
class
P
{
4
public int
x
;
5
}
6
7
struct
Q
{
8
public
P p
;
9
public
Q
(
P p
)
{ this.p = p; }
10
}
11
12
class
Test
{
13
static
IEnumerable
foo
()
{ return null; }
14
15
static void
Main
()
16
{
17
IEnumerable f
=
foo
();
18
if
(
f
!=
null
)
19
foreach
(
P p
in
f
)
20
p
.
x
=
0
;
21
if
(
f
!=
null
)
22
foreach
(
Q q
in
f
)
23
q
.
p
.
x
=
0
;
24
}
25
}