repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge pull request #4926 from BrzVlad/fix-tls-v5
[mono-project.git]
/
mcs
/
errors
/
cs0208-3.cs
blob
5932dbe6b8718d42e83b24210a78568117d78c41
1
// CS0208: Cannot take the address of, get the size of, or declare a pointer to a managed type `Foo.P'
2
// Line: 18
3
// Compiler options: -unsafe
4
5
public unsafe class
Foo
6
{
7
public class
P
8
{
9
public
P
*
GetEnumerator
()
10
{
11
return null
;
12
}
13
}
14
15
public static void
Main
()
16
{
17
P o
=
new
P
();
18
foreach
(
P p
in
o
)
19
{
20
}
21
}
22
}