-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Description
The Roslyn C# compiler allows a return attribute_target_specifier in the following contexts, where ECMA-334 5th edition § 22.3 (Attribute specification) does not allow it:
addaccessor of an eventremoveaccessor of an eventsetaccessor of a propertysetaccessor of an indexer
Please document this extension, to comply with ECMA-334 5th edition chapter 2:
A conforming implementation of C# shall be accompanied by a document that defines all implementation-defined characteristics, and all extensions.
The feature used to be documented at https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/language-specification/attributes#attribute-specification, but it was not marked as an extension, and anyway has been removed from that document, which now comes from an ECMA C# draft.
I imagine the extension could be documented in https://github.com/dotnet/roslyn/tree/main/docs/compilers/CSharp, which already describes some other extensions (if a directory can be considered "a document"), or perhaps in https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/concepts/attributes/.
Split from dotnet/csharpstandard#340.