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
2009-10-22 Marek Safar <marek.safar@gmail.com>
[mcs.git]
/
errors
/
cs0459.cs
blob
564a0ac59e63f6872974cb1765d0254e82ea0bb6
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
}