Skip to content

Commit 4b4111b

Browse files
author
Marc Rasi
committed
fix deserialization test failure
1 parent 5d8f176 commit 4b4111b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/Serialization/derivative_attr.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ protocol InstanceMethod : Differentiable {
3636
func foo(_ x: Self) -> Self
3737
func bar<T : Differentiable>(_ x: T) -> Self
3838
}
39+
extension InstanceMethod {
40+
func foo(_ x: Self) -> Self { self }
41+
func bar<T : Differentiable>(_ x: T) -> Self { self }
42+
}
3943
extension InstanceMethod {
4044
// CHECK: @derivative(of: foo, wrt: (self, x))
4145
@derivative(of: foo)

0 commit comments

Comments
 (0)