2010-06-21 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git] / errors / cs0459.cs
blob93b1a22a7704d75196ce04022ed67740360558b5
1 // CS0459: Cannot take the address of foreach iteration variable `c'
2 // Line: 10
3 // Compiler options: -unsafe
5 class C
7 public static unsafe void Main ()
9 foreach (char c in "test") {
10 char* ch = &c;