Switch to compiler-tester
[mono.git] / mcs / tests / gtest-164.cs
1 using System;
2 using System.Collections;
3 using System.Collections.Generic;
4
5 public delegate int Int2Int (int i);
6
7 public class FunEnumerable
8 {
9         int size;
10         Int2Int f;
11
12         public FunEnumerable(int size, Int2Int f)
13         {
14                 this.size = size; this.f = f;
15         }
16
17         public IEnumerator<int> GetEnumerator()
18         {
19                 yield return f (size);
20         }
21 }
22
23 class X
24 {
25         static void Main ()
26         { }
27 }