Skip to content

Commit d42ab14

Browse files
Merge pull request #299 from stephentyrone/sendable-minimum-swift
Restrict sendable conformance for Complex to 5.5 and higher.
2 parents ba43341 + 77b98fa commit d42ab14

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/ComplexModule/Complex.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ public struct Complex<RealType> where RealType: Real {
6969
}
7070
}
7171

72+
#if swift(>=5.5)
7273
extension Complex: Sendable where RealType: Sendable { }
74+
#endif
7375

7476
// MARK: - Basic properties
7577
extension Complex {

0 commit comments

Comments
 (0)