You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think there is a difference between the desired behavior and the implementation of idiomaticShortRedecl. If the right hand side AST node is not an ast.Ident or TypeAssertExpr, the whole function should fail and return false. Right now the function returns true even when the assignment being evaluated is not an idiomatic short redeclaration as described at the top of the function. I would like to submit a patch for this, if the implementation is not behaving as desired.
The text was updated successfully, but these errors were encountered:
Using the go tool vet -shadow command correctly reports shadowing in the following code:
However, running the same command on this code does not report any shadowing:
I think there is a difference between the desired behavior and the implementation of
idiomaticShortRedecl
. If the right hand side AST node is not an ast.Ident or TypeAssertExpr, the whole function should fail and return false. Right now the function returns true even when the assignment being evaluated is not an idiomatic short redeclaration as described at the top of the function. I would like to submit a patch for this, if the implementation is not behaving as desired.The text was updated successfully, but these errors were encountered: