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
For reference, this seems to be similar to a bug we were having in Reusable, adding a storyboardtype property to UIViewController but the compiler could not see it but only the instance property declared in UIKit
Not sure I understand; if you override the instance property a:Int in the subclass (i.e. with a computed property) there's no shadowing, the access resolves to the override. The only bug here (which I agree, may well be a bug) is when the static property of the subclass incorrectly shadows a non-overridden instance property of the superclass.
Attachment: Download
Environment
Swift version 3.1 (swiftlang-802.0.51 clang-802.0.41)
Additional Detail from JIRA
md5: 966e77bffcb4ee5e543ab440633d7473
Issue Description:
The following code compiles:
However, if B and C are in different modules, this produces:
"Static member 'a' cannot be used on instance of type 'B'".
In the words of @jckarter: "maybe we don't query other modules if we find results in the current".
The text was updated successfully, but these errors were encountered: