fitscore icon indicating copy to clipboard operation
fitscore copied to clipboard

Fail to compile in iOS 18

Open yong543210 opened this issue 7 months ago • 1 comments

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.

yong543210 avatar May 14 '25 11:05 yong543210

I ran into the same problem yesterday. Did you manage to fix it?

tvanpeer avatar Jun 16 '25 13:06 tvanpeer