Files
swift-mirror/test/Generics/Inputs/rdar79564324_other.swift
Slava Pestov 91b81cbdc8 RequirementMachine: Add a test that used to fail with the GSB
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.
2021-07-17 14:27:51 -04:00

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)
}