dotnet / dotnet/csharpstandard

22.3 Use of "inherited" isn't really clear...

Open
#139 3 comments 0 reactions 0 assignees View on GitHub
type: clarity
Dominant language
C#
Stars
815
Forks
99
Avg merge
1d 14h
Merged PRs (30d)
16

Description

23.3 contains:

> It is a compile-time error to use a single-use attribute class more than once on the same entity.

What about if it's an inherited attribute, and we specify it on a base class? Can it be specified again on a derived class?

Anything retrieving the attribute at run-time can distinguish between them, but it's not clear what the intention is. Do we need to clarify this?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.