2010-05-19 Jb Evain <jbevain@novell.com>
[mcs.git] / tests / test-488.cs
blob62794ff50b836ac6fffe5d5a06b2a1b225ca2f73
1 using System.Collections;
3 class P {
4 public int x;
7 struct Q {
8 public P p;
9 public Q (P p) { this.p = p; }
12 class Test {
13 static IEnumerable foo () { return null; }
15 static void Main ()
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;