mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Make sure we don't try to introduce an implicit same-type requirement in this case. Fixes rdar://problem/63731199.
18 lines
415 B
Swift
18 lines
415 B
Swift
// RUN: %target-typecheck-verify-swift
|
|
|
|
protocol PerturberProtocol {
|
|
associatedtype CP: Perturbation
|
|
}
|
|
|
|
protocol Perturbation {
|
|
associatedtype Perturber: PerturberProtocol where Self == Perturber.CP
|
|
}
|
|
|
|
protocol IDCMemberFunctionAddition: Perturbation {
|
|
// This type alias should not cause a crash.
|
|
typealias Perturber = MemberAdder
|
|
}
|
|
|
|
class MemberAdder<CP: IDCMemberFunctionAddition>: PerturberProtocol {
|
|
}
|