mirror of
https://github.com/apple/swift-numerics
synced 2026-11-29 05:24:24 +00:00
Merge pull request #299 from stephentyrone/sendable-minimum-swift
Restrict sendable conformance for Complex to 5.5 and higher.
This commit is contained in:
1 file changed
+2
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user