Skip to content

Commit 328ce4c

Browse files
committed
Fix test struct and func naming.
1 parent 0ace614 commit 328ce4c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/AutoDiff/generics.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,14 +129,14 @@ func TF_508_func(x: TF_508_Struct<Float>, y: TF_508_Struct<Float>)
129129
let TF_508_bp = pullback(at: TF_508_inst, TF_508_inst, in: TF_508_func)
130130

131131
// TF-523
132-
struct A : Differentiable & AdditiveArithmetic {
132+
struct TF_523_Struct : Differentiable & AdditiveArithmetic {
133133
var a: Float = 1
134-
typealias TangentVector = A
135-
typealias AllDifferentiableVariables = A
134+
typealias TangentVector = TF_523_Struct
135+
typealias AllDifferentiableVariables = TF_523_Struct
136136
}
137137

138138
@differentiable
139-
func f(_ x: A) -> Float {
139+
func TF_523_f(_ x: TF_523_Struct) -> Float {
140140
return x.a * 2
141141
}
142142

0 commit comments

Comments
 (0)