// RUN: %target-swift-frontend -emit-ir -O %s | %FileCheck %s // This is a compile-only test. It checks that the compiler does not crash for // a partial_apply with "unusual" conformances: rdar://problem/59456064 public struct Inner { } extension Inner: Equatable where Element: Equatable { public static func == (lhs: Inner, rhs: Inner) -> Bool { return false } } public struct Outer { } extension Outer: Equatable where Value: Equatable { public static func == (lhs: Outer, rhs: Outer) -> Bool { return false } } @inline(never) func foo(_ x: Element, _ equal: (Element, Element) -> Bool) { _ = equal(x, x) } // CHECK: define {{.*}}testit public func testit(_ x: Outer>) { foo(x, ==) }