[tuner] handle the case with multiple "preserve" attributes
[mono-project.git] / mcs / tests / gtest-520.cs
blob739f4e77d81e7cfdc3f22bf232e621dd099b97d0
1 using System;
2 using System.Collections;
3 using System.Collections.Generic;
5 class A
7 public void Method ()
12 class C : IEnumerable, IEnumerable<A>
14 public class GetEnumerator
18 IEnumerator IEnumerable.GetEnumerator ()
20 throw new ApplicationException ();
23 IEnumerator<A> IEnumerable<A>.GetEnumerator ()
25 return new List<A> ().GetEnumerator ();
29 class D : C
33 public class Test
35 public static int Main ()
37 foreach (var v in new C ()) {
38 v.Method ();
41 foreach (var v in new D ()) {
42 v.Method ();
45 return 0;