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
When restricting a protocol to require inheritance from a specified class like so:
protocol SomeProtocol where Self: SomeClass {{{}}}
You are unable to access many properties of SomeClass outside of the same file as the declaration of SomeProtocol. I have experienced this on all apple platforms and ubuntu 16.04.
For example if you have the following files (which are attached and organized as a swift package) you will see all of the issues.
Attachment: Download
Environment
macOS 10.13.4 – Apple Swift version 4.1.2 (swiftlang-902.0.54 clang-902.0.39.2
Ubuntu 16.04 (on arm) – Swift version 4.1.1 (swift-4.1.1-RELEASE)
Additional Detail from JIRA
md5: 311941431a009031cc91fdaf1bd8655f
duplicates:
Issue Description:
When restricting a protocol to require inheritance from a specified class like so:
protocol SomeProtocol where Self: SomeClass {
{{}}}You are unable to access many properties of SomeClass outside of the same file as the declaration of SomeProtocol. I have experienced this on all apple platforms and ubuntu 16.04.
For example if you have the following files (which are attached and organized as a swift package) you will see all of the issues.
For convenience here are the actual error outputs I have experienced.
Apple platforms:
Run time crash:
Build failure:
Ubuntu 16.04:
Build Failure
The text was updated successfully, but these errors were encountered: