Skip to content

Obsolete attribute on overridden property gives no error #81765

@SpaceOgre

Description

@SpaceOgre

Version Used: 10.0.0

Steps to Reproduce:

  1. Create a base class with a property
  2. Inherit from the base class and mark the property as Obsolete with IsError = true
  3. Build
  4. No error is given and it builds fine

https://lab.razor.fyi/#nY9BSgNBEEURDWivxBMUWSUgM5jsHLKIEURRDBg3imBnphwbe7pjVU80hLmON_AK3kD3bjyHJMbYDI4Le9e_Xv3_SzzXhOiTTUlmQcxbT7WclUnhbMIOs0j4v6BntcbYKWs4OECDpOI_iMMsy50caiwx-0qmxrJTMVdPgp5NsGuknrAqY8fK3JekwS2hTJRJq_RgIPmOIyFiLZlhcbGYCgAAdtKpGMZWJXAilWk05_LXcPbGkkBCBww-QLfRjJYDGfTJjpDcBDqwEwGEobGARJZ-YdrQgXYEYfgDFKL47rQnGReFRvlQzwopcrnUoIyDZc4UUnQRMLrIW-7Crm9weTpkq9Fho37OuFxugTLsUCb1bXCUY_PKj7NjJFIJVuZBMcf9HR9tVbH_auM7t0vOhThapdxcbKy_vb68f9xsrl2vPK58Ag

Diagnostic Id: CS0619

If this is a report about a bug in an analyzer, please include the diagnostic ID and message if possible (e.g. "IDE0030: Use coalesce expression").

Expected Behavior:
To get a compiler error, just like for none overriden properties.

Actual Behavior:
No error, it compiles just fine

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions