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
[sgen] Don't trigger collections during allocation of thread objects (#17970)
[mono-project.git]
/
mcs
/
errors
/
cs0254.cs
blob
c3f91d7526aed6a31157c13048216b7ba7ecec40
1
// CS0254: The right hand side of a fixed statement assignment may not be a cast expression
2
// Line: 16
3
// Compiler options: -unsafe
4
5
class
Box
{
6
public int value
;
7
}
8
9
unsafe struct
Obsolete
{
10
}
11
12
class
MainClass
{
13
unsafe public static void
Main
()
14
{
15
Box b
=
new
Box
();
16
fixed
(
long
*
p
= (
long
*)&
b
.
value
)
17
{
18
}
19
}
20
}