We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Class A Function Add(ByVal x As Integer, ByVal b As Boolean) As Integer Select Case x Case 2 If b Then Return 4 Else Return 6 End If End Select Return 3 End Function End Class
class A { public int Add(int x, bool b) { switch (x) { case 2: { if (b) return 4; else return 6; break; } } return 3; } }
class A { public int Add(int x, bool b) { switch (x) { case 2: { if (b) return 4; else return 6; } } return 3; } }
Produces:
warning CS0162: Unreachable code detected
The text was updated successfully, but these errors were encountered:
Similar issue with Throw New Exception() too.
Throw New Exception()
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Input code
Erroneous output
Expected output
Details
Produces:
The text was updated successfully, but these errors were encountered: