Champion "Permit attributes on local functions" (VS 16.8, .NET 5) · Issue #1888 · dotnet/csharplang (original) (raw)
- Proposal added
- Discussed in LDM 2018-09-10
- Decision in LDM
- Finalized (done, rejected, inactive)
- Draft spec in Draft spec for local function attributes #3008
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.