Closed oscbyspro closed 1 year ago
Changed the title because I'm keeping this method:
extension Swift.StaticBigInt {
@inlinable public init(_ other: NBKStaticBigInt) {
self = other.base
}
}
That moment when a type can be inferred in Swift 5.8 but not in Swift 5.7.
// Swift 5.7: 🛑 [...] has no return statements [...] from which to infer an underlying type
func someSwiftFixedWidthIntegerType(
_ x: (some Swift.FixedWidthInteger).Type
) -> (some Swift.FixedWidthInteger).Type { x }
I have this one extension on Swift.BinaryInteger (because it would be recursive elsewhere):
I think it would be more elegant if I did not touch the vanilla protocols. Here's an alternative: