blob: 7860d8935e737723a070aab85b12ed23134f5fdd [file] [log] [blame]
// RUN: %target-swift-frontend -emit-ir %s
// TF-917: `partial_apply` IRGen crash.
public protocol TF_917: Differentiable {
@differentiable
func r<A>(_ a: A) -> Float
}
@differentiable
public func tf_917<B: TF_917>(_ b: B) -> Float {
return b.r(0.0)
}