We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d8f176 commit 4b4111bCopy full SHA for 4b4111b
test/Serialization/derivative_attr.swift
@@ -36,6 +36,10 @@ protocol InstanceMethod : Differentiable {
36
func foo(_ x: Self) -> Self
37
func bar<T : Differentiable>(_ x: T) -> Self
38
}
39
+extension InstanceMethod {
40
+ func foo(_ x: Self) -> Self { self }
41
+ func bar<T : Differentiable>(_ x: T) -> Self { self }
42
+}
43
extension InstanceMethod {
44
// CHECK: @derivative(of: foo, wrt: (self, x))
45
@derivative(of: foo)
0 commit comments