coverlet
coverlet copied to clipboard
Return in await using without braces in if statement has uncovered line
I may have discovered a wrong line coverage. To reproduce it four different circumstances must be met:
- Use await using (only using works correctly)
- await using must be inside a if statement (maybe reproduction works with other statements too)
- await using must be used without braces
- A value must be returned in context of using inside the if statement
See reproduction https://github.com/meggima/coverlet-reproductions AwaitUsingReturnInIfStatementReproduction.cs & AwaitUsingReturnInIfStatementReproductionFixture.cs

Thank you for steadily improving this software!
Thanks for reporting this. 🙏
This issue is stale because it has been open for 3 months with no activity.