I'm attempting to apply a constrained protocol extension to a struct (Swift 2.0) and receiving the following compiler error: type 'Self' constrained to non-protocol type 'Foo' struct Foo: MyProtocol { let myVar: String init(myVar: String) { self.myVar = myVar } } protocol MyProtocol { func bar() } extension MyProtocol where Self: Foo { func bar() { print(myVar) } } let foo = Foo(myVar: "Hello, Pro


{{#tags}}- {{label}}
{{/tags}}