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
SR-8524 Shadowing in protocols leads to difficult to find bugs
Issue Description:
I had a bug that was hard to track down. It turns out in a method, I had accidentally created a new variable at the method body scope with `let foo = ...` instead of assigning to the instance variable `foo`.
I feel that while this should be permitted, it would be a good idea to warn about it. I would be OK with having to use some keyword that makes it explicit I'm shadowing something else.
The text was updated successfully, but these errors were encountered:
Additional Detail from JIRA
md5: 6412f3a94c91e27f72641fcd6c55e90c
relates to:
Issue Description:
I had a bug that was hard to track down. It turns out in a method, I had accidentally created a new variable at the method body scope with `let foo = ...` instead of assigning to the instance variable `foo`.
I feel that while this should be permitted, it would be a good idea to warn about it. I would be OK with having to use some keyword that makes it explicit I'm shadowing something else.
The text was updated successfully, but these errors were encountered: