Skip to content

Commit d46e20b

Browse files
committed
String(reflecting:) not available in Embedded mode.
And Real does not conform to CustomDebugStringConvertible, so can't access debugDescription property directly on x and y
1 parent 6a7cf59 commit d46e20b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/ComplexModule/Complex+StringConvertible.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ extension Complex: CustomStringConvertible {
1616
}
1717
}
1818

19+
@_unavailableInEmbedded
1920
extension Complex: CustomDebugStringConvertible {
2021
public var debugDescription: String {
2122
"Complex<\(RealType.self)>(\(String(reflecting: x)), \(String(reflecting: y)))"

0 commit comments

Comments
 (0)