Merge pull request #1525 from akoeplinger/fix-dynamicdata-test
[mono-project.git] / mcs / errors / cs1579-4.cs
blob13e3f01c2080e93f2f2b020b7c84eb936aa106b0
1 // CS1579: foreach statement cannot operate on variables of type `Foo' because it does not contain a definition for `GetEnumerator' or is inaccessible
2 // Line: 12
4 using System;
5 using System.Collections;
7 public class Test
9 public static void Main ()
11 Foo f = new Foo ();
12 foreach (object o in f)
13 Console.WriteLine (o);
17 public class Foo
19 public Func<IEnumerator> GetEnumerator;