Skip to content

Commit ca16e69

Browse files
author
Eugene Burmako
committed
Update test/AutoDiff/Sema/differentiable_attr_type_checking.swift with a new (unexpected?) failure
1 parent 9e32a5f commit ca16e69

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/AutoDiff/Sema/differentiable_attr_type_checking.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -845,6 +845,7 @@ extension TF_521 where T: Differentiable, T == T.TangentVector {
845845
return (TF_521(real: real, imaginary: imaginary), { ($0.real, $0.imaginary) })
846846
}
847847
}
848+
// expected-error @+1 {{result type 'TF_521<Float>' does not conform to 'Differentiable', but the enclosing function type is '@differentiable'}}
848849
let _: @differentiable (Float, Float) -> TF_521<Float> = { r, i in
849850
TF_521(real: r, imaginary: i)
850851
}

0 commit comments

Comments
 (0)