Open louis-z opened 4 years ago
Moving to the compiler team - this is a compiler API
In VS 17.11.5, using the sample code above I'm getting it dimmed and the compiler emits a warning about the code being unreachable at that location, so this must be fixed already I assume
@Rekkonnect What does hte api produce though?
Version Used: Microsoft.CodeAnalysis.CSharp.Workspaces 2.10.0 (I know it's an old version)
Steps to Reproduce: Analyze control flow on the following
if
block:Expected Behavior: EndPointIsReachable == false
According to the EndPointIsReachable documentation:
In this case, the last statement (
value++;
) is unreachable.Actual Behavior: EndPointIsReachable == true
Here's the complete code I used to test this behavior: