Skip to content

Champion "Permit attributes on local functions" (VS 16.8, .NET 5) #1888

@gafter

Description

@gafter

The idea is to permit attributes to be part of the declaration of a local function.

From discussion in LDM today (4/29/2019), we would like to allow attributes on local function parameters, which would help with async-iterator local functions that want to use [EnumeratorCancellation].

Speclet: https://github.com/dotnet/csharplang/blob/master/proposals/csharp-9.0/local-function-attributes.md

Note: we did include support for extern as part of this work after all.

Metadata

Metadata

Assignees

Labels

Implemented Needs ECMA SpecThis feature has been implemented in C#, but still needs to be merged into the ECMA specificationProposal champion

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions