I import a library 'Chart' as project into my project and compile, the result is failed due to an error in dependency package 'swift-numerics'.
The error indicates 'Type of expression is ambiguous without more context' in 2 locations in ApproximateEquality.swift of RealModule, where both imply something wrong like ' .\magnitude' as below.
public func isApproximatelyEqual(
to other: Self,
relativeTolerance: Magnitude = Magnitude.ulpOfOne.squareRoot(),
norm: (Self) -> Magnitude = \.magnitude
) -> Bool
and
public func isApproximatelyEqual(
to other: Self,
absoluteTolerance: Magnitude,
relativeTolerance: Magnitude = 0
) -> Bool {
self.isApproximatelyEqual(
to: other,
absoluteTolerance: absoluteTolerance,
relativeTolerance: relativeTolerance,
norm: \.magnitude
)
}
Xcode: 11.3.1
Swift: 5