a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
20 lines
291 B
C#
20 lines
291 B
C#
// CS0809: Obsolete member `B.Property' overrides non-obsolete member `A.Property'
|
|
// Line: 17
|
|
// Compiler options: -warnaserror -warn:4
|
|
|
|
using System;
|
|
|
|
class A
|
|
{
|
|
public virtual int Property {
|
|
set { }
|
|
}
|
|
}
|
|
|
|
class B : A
|
|
{
|
|
[Obsolete ("TEST")]
|
|
public override int Property {
|
|
set { }
|
|
}
|
|
} |