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
/
cs0612-4.cs
blob
6c7a42a84d6db45386c41098c68992b1900e5144
1
// CS0612: `O1' is obsolete
2
// Line: 23
3
// Compiler options: -warnaserror
4
5
using
System
;
6
7
[
Obsolete
]
8
class
O1
9
{
10
}
11
12
#pragma warning disable 612
13
class
A
14
{
15
public virtual void
Foo
<
T
> ()
where T
:
O1
16
{
17
}
18
}
19
#pragma warning restore 612
20
21
class
B
:
A
22
{
23
public override void
Foo
<
U
> ()
24
{
25
}
26
}