a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
14 lines
220 B
C#
14 lines
220 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;
|
|
}
|
|
}
|
|
}
|