From 6a3ecdb480d9b8f7086165a67722f5f4ef62b42d Mon Sep 17 00:00:00 2001 From: Stephen Canon Date: Thu, 20 Feb 2025 17:26:04 -0500 Subject: [PATCH] Restrict sendable conformance for Complex to 5.5 and higher. --- Sources/ComplexModule/Complex.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sources/ComplexModule/Complex.swift b/Sources/ComplexModule/Complex.swift index 4a3c32b..b2247b4 100644 --- a/Sources/ComplexModule/Complex.swift +++ b/Sources/ComplexModule/Complex.swift @@ -69,7 +69,9 @@ public struct Complex where RealType: Real { } } +#if swift(>=5.5) extension Complex: Sendable where RealType: Sendable { } +#endif // MARK: - Basic properties extension Complex {