projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
use new GetOriginalType method
[mono.git]
/
mcs
/
tests
/
test-488.cs
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
}