Skip to content

Commit d864dcd

Browse files
committed
Add address-only testcase
1 parent a32f3bc commit d864dcd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/AutoDiff/compiler_crashers_fixed/issue-77871-implicit-diff-optional-conversion.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@ func testFunc(_ x: Double?) -> Double? {
1313
}
1414
print(pullback(at: 1.0, of: testFunc)(.init(1.0)) == 3.0)
1515

16+
func foo<T>(_ fn: @escaping @differentiable(reverse) (T?) -> Double) {
17+
let _: @differentiable(reverse) (T) -> Double = fn
18+
}

0 commit comments

Comments
 (0)