**** Merged from MCS ****
[mono-project.git] / mcs / errors / cs0202.cs
blobb2950db3c23c0e7626531cb2ed8ceb5348e85c50
1 // cs0202.cs: The call to GetEnumerator must return a class or a struct, not 'Foo.P*'
2 // Line: 18
3 // Compiler options: -unsafe
5 public unsafe class Foo
7 public class P
9 public P* GetEnumerator ()
11 return null;
15 public static void Main ()
17 P o = new P ();
18 foreach (P p in o)