Re: [swift-users] Protocol Initializer Inheritance

2016-11-18 Thread Jordan Rose via swift-users
I think this is a known issue. You can work around it by jumping through another function: import Foundation protocol MyProtocol { init(foo: Int, bar: String) } class MyOperation: Operation, MyProtocol { required init(foo: Int, bar: String) { super.init() } } private func makeMyProtoHel

[swift-users] Protocol Initializer Inheritance

2016-11-18 Thread Bradley Zeller via swift-users
I am trying to construct an object that conforms to a protocol `A` and also sublclasses object `B`. Protocol `A` requires an initializer that will be used to construct it. Xcode will attempt to autocomplete the initializer but then ultimately gives the following error: `error: argument passed