[ci] Only build the additional profiles on one arch instead of everywhere
[mono-project.git] / mcs / errors / cs1579-2.cs
blob93ae2c1e76a6b39f691942cc386aa839c3c16a0c
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 internal IEnumerator GetEnumerator ()
21 return new ArrayList ().GetEnumerator ();