Bug in control flow analysis for out arguments (VS 16.8, .NET 5) #3431
Labels
Implemented Needs ECMA Spec
This feature has been implemented in C#, but still needs to be merged into the ECMA specification
Proposal champion
Milestone
Looks like the C# compiler have a bug in control flow analysis
Steps to Reproduce:
Clone the project https://github.com/rameel/ControlFlowError
Expected Behavior:
Compilation error with the message: The out parameter 'result' must be assigned to before control leaves the current method
Actual Behavior:
Compiled successfully
The text was updated successfully, but these errors were encountered: