apple / swift-numerics

Advanced mathematical types and functions for Swift

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ComplexTests.DifferentiableTests/testZeroTangentVectorInitializer no longer compiles with Swift trunk

finagolfin opened this issue · comments

I just built the Jan. 27 source snapshot of the Swift toolchain natively on my Android phone and then tried building and testing the latest commit on this repo's main branch, only to get this error:

swift-numerics/Tests/ComplexTests/DifferentiableTests.swift:74:42: error: value of type 'Complex<Float>' has no member 'zeroTangentVector'
    XCTAssertEqual(Complex<Float>(-5, 5).zeroTangentVector, Complex(0, 0))

I'm able to reproduce on Fedora Core 33 by using the official Centos 8 trunk snapshot builds from last month: Jan. 9 works but Jan. 23 doesn't, so this error isn't specific to Android.

I haven't dug into the reason, just reporting the regression.

This is because zeroTangentVectorInitializer has been removed on Swift main. I think @compnerd is looking into a fix.

Fixed in 0cf166d.

Yep, I can run the tests now.