Files
mono/mcs/errors/cs0459.cs
T
2008-08-13 12:32:51 +00:00

14 lines
233 B
C#

// CS0459: Cannot take the address of foreach iteration variable `c'
// Line: 10
// Compiler options: -unsafe
class C
{
public static unsafe void Main ()
{
foreach (char c in "test") {
char* ch = &c;
}
}
}