blob: aaa271d2a1a2c580ea730b2d08c5dba99a0c2d50 [file] [log] [blame]
// RUN: %target-swift-frontend %s -typecheck
struct Bar : BarProtocol {
typealias Element = Int
}
struct Foo: FooProtocol {
typealias Things = Bar
func thing() -> Thing {}
}
protocol BarProtocol {
associatedtype Element
}
protocol FooProtocol {
associatedtype Things: BarProtocol
typealias Thing = Things.Element
}