Local functions reuse method parameter and type parameter symbols, which add diagnostics to declaration diagnostics #16652
Labels
Area-Compilers
Bug
Concept-Diagnostic Clarity
The issues deals with the ease of understanding of errors and warnings.
Milestone
This can cause inconsistencies between the semantic model and standard binding, e.g.
In addition, local functions should never add diagnostics to DeclarationDiagnostics.
This may require creating new symbols for local function parameters and type parameters.
The text was updated successfully, but these errors were encountered: