summaryrefslogtreecommitdiff
path: root/mcs/tests/test-iter-22.cs
blob: 4ef3c9b44ff9119d195522d4cdf6415557fdfe5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
using System;
using System.Collections;

public class Test
{
        public static void Main ()
        {
                foreach (object o in new Test ())
                        Console.WriteLine (o);
        }

        public IEnumerator GetEnumerator ()
        {
                foreach (int i in new ArrayList ())
                        yield return i;
        }
}