[interp] Fall back to old implementation when calling on proxy
[mono-project.git] / mcs / tests / gtest-073.cs
blob91331454e3b981a865f1b4ad0fd36ac211bebc91
1 using System;
2 using System.Collections;
3 using System.Collections.Generic;
5 class MyList<T> : IEnumerable<T>
7 public IEnumerator<T> GetEnumerator ()
9 yield break;
12 IEnumerator IEnumerable.GetEnumerator ()
14 return GetEnumerator ();
18 struct Foo<T>
20 public readonly T Data;
22 public Foo (T data)
24 this.Data = data;
28 class X
30 public static void Main ()
32 MyList<Foo<int>> list = new MyList <Foo<int>> ();
33 foreach (Foo<int> foo in list)