dotnet / dotnet/roslyn

Dictionary expressions: diagnostics from `GetCollectionExpressionApplicableIndexer()` are ignored

Open
#77,879 0 comments 0 reactions 0 assignees View on GitHub
Area-Compilers Feature - Dictionary Expressions
Dominant language
C#
Stars
20.7k
Forks
4.3k
PR merge metrics
PR metrics pending

Description

Diagnostics from `GetCollectionExpressionApplicableIndexer()` are currently ignored. Should diagnostics be reported, at least in cases where an indexer is returned?

Contributor guide

Open the contributing guide

Research direction

Start by locating GetCollectionExpressionApplicableIndexer() and tracing its callers to see where its diagnostics are discarded. Determine whether diagnostics should be reported when an indexer is returned, then verify the chosen behavior with a focused compiler diagnostics regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.