* roottypes.cs: Rename from tree.cs.
[mono.git] / mcs / errors / cs1624.cs
1 // cs1624.cs: The body of `X.Test(int)' cannot be an iterator block because `System.Collections.ArrayList' is not an iterator interface type
2 // Line: 8
3 using System;
4 using System.Collections;
5
6 class X
7 {
8         public static ArrayList Test (int a)
9         {
10                 yield return 0;
11         }
12
13         static void Main ()
14         {
15                 IEnumerable a = Test (3);
16                 Console.WriteLine (a);
17         }
18 }