mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
I have a lot more known-failing GSB test cases, but the limiting factor now is the GSB's minimization algorithm, which runs first before the requirement machine gets to see anything. Replacing that with a new algorithm based on the rewrite system is the next step here.
10 lines
187 B
Swift
10 lines
187 B
Swift
public protocol P {
|
|
associatedtype A: P
|
|
}
|
|
|
|
public func bar<T: P>(from: T) {}
|
|
|
|
@inlinable public func foo<T, U>(from: T, to: U) where T == T.A, U : P, U.A == T {
|
|
bar(from: from)
|
|
}
|