Restrict sendable conformance for Complex to 5.5 and higher.

This commit is contained in:
Stephen Canon committed 2025-02-20 17:26:04 -05:00
1 parent 803aae1ef0
commit 6a3ecdb480
1 file changed
+2
+2
View File
@@ -69,7 +69,9 @@ public struct Complex<RealType> where RealType: Real {
}
}
#if swift(>=5.5)
extension Complex: Sendable where RealType: Sendable { }
#endif
// MARK: - Basic properties
extension Complex {