dotnet/roslyn

Possibly incorrect comment in definite assignment

Open

#62,522 opened on Jul 9, 2022

View on GitHub
 (0 comments) (0 reactions) (0 assignees)C# (4,257 forks)batch import
Area-CompilersBugConcept-Design Debthelp wanted

Repository metrics

Stars
 (20,414 stars)
PR merge metrics
 (Avg merge 6d 17h) (256 merged PRs in 30d)

Description

https://github.com/dotnet/roslyn/blob/7fc34f9e211bef9499cd1bdf6a11630f12052de1/src/Compilers/CSharp/Portable/FlowAnalysis/DefiniteAssignment.cs#L1684

commenting out the code fails the test PiecewiseStructAssign2 with definite assignment errors. So it has more effect than region analysis APIs.

Contributor guide