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
This commit is contained in:
Eric Bariaux committed 2025-09-18 07:21:15 +02:00
1 parent 6a7cf593bf
commit d46e20b4c5
1 file changed
+1
@@ -16,6 +16,7 @@ extension Complex: CustomStringConvertible {
}
}
@_unavailableInEmbedded
extension Complex: CustomDebugStringConvertible {
public var debugDescription: String {
"Complex<\(RealType.self)>(\(String(reflecting: x)), \(String(reflecting: y)))"