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
I get an error for the method redefinition but it shouldn't error because it is in the if scope which is different for each if scope
method
There should be no error in this
There is an error
Given already. This can be seen in vlang/v#23967 for a clear idea
No response
v doctor
Not Required for this
IDEA Ultimate
Latest
The text was updated successfully, but these errors were encountered:
It only happens on else branch of IfGruard expression, where a given var is none. Original a seem to be still in scope.
IfGruard
none
a
fn main() { aaa := ?int(none) bbb := ?int(1) if a := aaa { println("aaa: $a") } else { if a := bbb { println("bbb: $a") } } if a := bbb { println("bbb: $a") } }
Sorry, something went wrong.
No branches or pull requests
Describe the bug
I get an error for the
method
redefinition but it shouldn't error because it is in the if scope which is different for each if scopeExpected Behavior
There should be no error in this
Current Behavior
There is an error
Reproduction Steps
Given already. This can be seen in vlang/v#23967 for a clear idea
Possible Solution
No response
Additional Information/Context
No response
Environment details (
v doctor
output)Not Required for this
IDE Type (IDEA Community/Ultimate, GoLand, CLion, etc.)
IDEA Ultimate
Plugin Version
Latest
The text was updated successfully, but these errors were encountered: