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:
Another Team had some trouble tracking down a bug that was finally ruled to be shadowing between a var in a protocol and a let in the implementation. This is made worse than binding shadowing because the protocol might be defined "father" away than the implementation.
Is allowed, which to me adds yet another level of confusing shadowing (I would have expected the
reverse to be true, IE you are extending name with a getter)
The text was updated successfully, but these errors were encountered:
Additional Detail from JIRA
md5: 466deddb9da15fc888b2f9f4d07edafb
relates to:
Issue Description:
Another Team had some trouble tracking down a bug that was finally ruled to be shadowing between a
var
in a protocol and alet
in the implementation. This is made worse than binding shadowing because the protocol might be defined "father" away than the implementation.I was also surprised to find that:
Was not allowed but
Is allowed, which to me adds yet another level of confusing shadowing (I would have expected the
reverse to be true, IE you are extending name with a getter)
The text was updated successfully, but these errors were encountered: