Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Ambiguous line label identifier #408
Consider this [bad but legal] code:
The user's intent may have been to call both
Rubberduck should warn when it encounters a line label identifier that matches a procedure name that's in-scope.
Possible quick-fix: Convert line label to procedure call - turn this:
Another possible fix would be to introduce a
But that would fire up #34, and then applying the Remove obsolete Call statement quickfix would result in this code:
In other words, this inspection solves an issue that an edge-case quickfix of #34 introduces in the user's code.