mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
18 lines
320 B
Swift
18 lines
320 B
Swift
// RUN: %target-swift-frontend -emit-ir %s
|
|
|
|
// https://github.com/apple/swift/issues/56648
|
|
|
|
public protocol One {
|
|
associatedtype MyType
|
|
}
|
|
|
|
public protocol Two {
|
|
associatedtype MyType
|
|
}
|
|
|
|
public protocol Three: One, Two where MyType: Three {}
|
|
|
|
extension Three {
|
|
public func doStuff(_: MyType.MyType.MyType) {}
|
|
}
|