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
/
cs0619-24.cs
blob
48a14b7ad8e06bcc6061d4d247e2554748d9949a
1
// CS0619: `Obsolete' is obsolete: `'
2
// Line: 19
3
// Compiler options: -unsafe
4
5
class
Box
{
6
public
Helper o
;
7
}
8
9
[
System
.
Obsolete
(
""
,
true
)]
10
unsafe struct
Obsolete
{
11
}
12
13
unsafe struct
Helper
{}
14
15
class
MainClass
{
16
unsafe public static void
Main
()
17
{
18
Box b
=
new
Box
();
19
fixed
(
Obsolete
*
p
= &
b
.
o
)
20
{
21
}
22
}
23
}