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
import std.stdio; void main() { int x = 5; switch (x) { case 3: int y = x + 2; writeln(y); break; default: int y = x + 3; writeln(y); break; } }
gives Variable "y" has the same name as a variable defined on line 7. on line 11 even though that's perfectly fine
Variable "y" has the same name as a variable defined on line 7.
the bug goes away if default: is replaced with another case whatever:
default:
case whatever:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
gives
Variable "y" has the same name as a variable defined on line 7.
on line 11 even though that's perfectly finethe bug goes away if
default:
is replaced with anothercase whatever:
The text was updated successfully, but these errors were encountered: