fitscore
fitscore copied to clipboard
Fail to compile in iOS 18
public static func ==<T: HDUValue>(lhs: HDUValue, rhs: T?) -> Bool { // --- line 0 ----
guard type(of: lhs) == T.self else { return false }
if let right = rhs {
return lhs.hashable == right.hashable
} else {
return false
}
}
Xcode complains:
/SourcePackages/checkouts/fitscore/Sources/FITS/HDU/HEADER/HDUValue.swift:109:24 Member operator '==' of protocol 'HDUValue' must have at least one argument of type 'Self' on line 0 above.
I ran into the same problem yesterday. Did you manage to fix it?