File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 1212import RealModule
1313
1414// FloatingPoint does not refine Codable, so this is a conditional conformance.
15+ #if compiler(>=6.0)
16+ @_unavailableInEmbedded
17+ #endif
1518extension Complex : Decodable where RealType: Decodable {
1619 public init ( from decoder: Decoder ) throws {
1720 var unkeyedContainer = try decoder. unkeyedContainer ( )
@@ -21,6 +24,9 @@ extension Complex: Decodable where RealType: Decodable {
2124 }
2225}
2326
27+ #if compiler(>=6.0)
28+ @_unavailableInEmbedded
29+ #endif
2430extension Complex : Encodable where RealType: Encodable {
2531 public func encode( to encoder: Encoder ) throws {
2632 var unkeyedContainer = encoder. unkeyedContainer ( )
Original file line number Diff line number Diff line change @@ -16,6 +16,9 @@ extension Complex: CustomStringConvertible {
1616 }
1717}
1818
19+ #if compiler(>=6.0)
20+ @_unavailableInEmbedded
21+ #endif
1922extension Complex : CustomDebugStringConvertible {
2023 public var debugDescription : String {
2124 " Complex< \( RealType . self) >( \( String ( reflecting: x) ) , \( String ( reflecting: y) ) ) "
You can’t perform that action at this time.
0 commit comments