dotnet / roslyn

The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
https://docs.microsoft.com/dotnet/csharp/roslyn-sdk/
MIT License
18.96k stars 4.02k forks source link

Semantic snippets test flaw #73909

Closed DoctorKrolic closed 1 month ago

DoctorKrolic commented 3 months ago

Semantic snippets tests, which verify, that a snippet is absent in the given context, don't actually verify anything. As shown in https://github.com/dotnet/roslyn/pull/73908, a test, where foreach is clearly valid (a test above verifies that), doesn't fail in CI

dotnet-issue-labeler[bot] commented 3 months ago

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

dotnet-issue-labeler[bot] commented 3 months ago

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.