blob: 564a0ac59e63f6872974cb1765d0254e82ea0bb6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// 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;
}
}
}
|