Skip to content

Conversation

@CyrusNajmabadi
Copy link
Member

Fixes #75894

@ghost ghost added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Nov 13, 2024
@CyrusNajmabadi CyrusNajmabadi marked this pull request as ready for review November 13, 2024 19:27
@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner November 13, 2024 19:27
@CyrusNajmabadi
Copy link
Member Author

@JoeRobich ptal. Tnx

void Main()
{
Dictionary<string, string> a = null;
Dictionary<string, string> d = new(a);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

new(a);

dumb question: how does the test know which line it is operating on?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It analyzes the entire file and reports all the diagnostics it finds. No diagnostics are reported here (hence no annotations in the test markup).

Copy link
Contributor

@ToddGrun ToddGrun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead VSCode

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix occurrence of IDE0028 for a c# Dictionary causes compile error CS9215

3 participants