We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Swift 5, Xcode 10.2
md5: f394c00ca6e6f7b32e009f6867b4e1a2
Issue Description:
public protocol EventTrackable { var eventName: String { get } } public protocol KeyedEventTrackable: EventTrackable { var eventKey: String { get } } public extension KeyedEventTrackable where Self: RawRepresentable, Self.RawValue == String { var eventName: String { return self.rawValue } } enum MyEvent: String, KeyedEventTrackable { case event = "cool.event" }
Receive: "Type 'MyEvent' does not conform to protocol 'KeyedEventTrackable'". Expect: It compiles.
The text was updated successfully, but these errors were encountered:
You forgot to implement eventKey property in MyEvent enum or in KeyedEventTrackable extension
Sorry, something went wrong.
Anton is correct; if I remove that requirement it works as expected.
Comment by Rex Fenley (JIRA)
Oh wow... talk about user error... embarrassing :|
No branches or pull requests
Environment
Swift 5, Xcode 10.2
Additional Detail from JIRA
md5: f394c00ca6e6f7b32e009f6867b4e1a2
Issue Description:
Receive: "Type 'MyEvent' does not conform to protocol 'KeyedEventTrackable'".
Expect: It compiles.
The text was updated successfully, but these errors were encountered: