repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2010-06-21 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git]
/
errors
/
cs0459.cs
blob
93b1a22a7704d75196ce04022ed67740360558b5
1
// CS0459: Cannot take the address of foreach iteration variable `c'
2
// Line: 10
3
// Compiler options: -unsafe
4
5
class
C
6
{
7
public static unsafe void
Main
()
8
{
9
foreach
(
char
c
in
"test"
) {
10
char
*
ch
= &
c
;
11
}
12
}
13
}