Created
November 11, 2015 01:23
-
-
Save malatx/93553765ae6aad5d7f9c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protocol A {} | |
protocol B { | |
typealias AType | |
func setAn(a: AType) | |
} | |
struct SomeB: B { | |
typealias AType = A | |
func setAn(a: AType) | |
{ | |
} | |
} | |
struct SomeC { | |
func doWith(a: A){ | |
let b = SomeB() | |
b.setAn(a) // no error, here | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment