Skip to content

Commit 6a7cf59

Browse files
committed
Codable not available right-now in Embedded mode
1 parent be0d7c6 commit 6a7cf59

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/ComplexModule/Complex+Codable.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import RealModule
1313

1414
// FloatingPoint does not refine Codable, so this is a conditional conformance.
15+
@_unavailableInEmbedded
1516
extension Complex: Decodable where RealType: Decodable {
1617
public init(from decoder: Decoder) throws {
1718
var unkeyedContainer = try decoder.unkeyedContainer()
@@ -21,6 +22,7 @@ extension Complex: Decodable where RealType: Decodable {
2122
}
2223
}
2324

25+
@_unavailableInEmbedded
2426
extension Complex: Encodable where RealType: Encodable {
2527
public func encode(to encoder: Encoder) throws {
2628
var unkeyedContainer = encoder.unkeyedContainer()

0 commit comments

Comments
 (0)