File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-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)
1516@_unavailableInEmbedded
17+ #endif
1618extension Complex : Decodable where RealType: Decodable {
1719 public init ( from decoder: Decoder ) throws {
1820 var unkeyedContainer = try decoder. unkeyedContainer ( )
@@ -22,7 +24,9 @@ extension Complex: Decodable where RealType: Decodable {
2224 }
2325}
2426
27+ #if compiler(>=6.0)
2528@_unavailableInEmbedded
29+ #endif
2630extension Complex : Encodable where RealType: Encodable {
2731 public func encode( to encoder: Encoder ) throws {
2832 var unkeyedContainer = encoder. unkeyedContainer ( )
Original file line number Diff line number Diff line change @@ -16,7 +16,9 @@ extension Complex: CustomStringConvertible {
1616 }
1717}
1818
19+ #if compiler(>=6.0)
1920@_unavailableInEmbedded
21+ #endif
2022extension Complex : CustomDebugStringConvertible {
2123 public var debugDescription : String {
2224 " Complex< \( RealType . self) >( \( String ( reflecting: x) ) , \( String ( reflecting: y) ) ) "
You can’t perform that action at this time.
0 commit comments