Created
June 3, 2017 05:51
-
-
Save DougGregor/409c0aa37904f3d8862bacc67adfcaaa 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 Fooable { | |
associatedtype Foo | |
} | |
protocol Barrable { | |
associatedtype Bar: Fooable | |
} | |
struct X {} | |
struct Y: Fooable { | |
typealias Foo = X | |
} | |
struct Z: Barrable { | |
typealias Bar = Y | |
} | |
struct X2 { } | |
func test8<T: Barrable, U: Barrable>(_ t: T, u: U) | |
where T.Bar == Y, U.Bar.Foo == X2, T.Bar == U.Bar { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment