Champion "Permit attributes on local functions" (VS 16.8, .NET 5) · Issue #1888 · dotnet/csharplang (original) (raw)

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.