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-07-20 Jb Evain <jbevain@novell.com>
[mcs.git]
/
errors
/
cs0672-3.cs
blob
5d335f0eca651f710f2b2ae02349af130d7f1675
1
// cs0672-3.cs: Member `B.Warning' overrides obsolete member `A.Warning'. Add the Obsolete attribute to `B.Warning'
2
// Line: 15
3
// Compiler options: -warnaserror
4
5
using
System
;
6
7
public class
A
{
8
[
Obsolete
()]
9
public virtual string
Warning
{
10
get
{ return ""; }
11
}
12
}
13
14
public class
B
:
A
{
15
public override string
Warning
{
16
get
{ return ""; }
17
}
18
}