mirror of
https://github.com/apple/swift-numerics
synced 2026-11-22 04:30:45 +00:00
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:
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)))"
|
||||
|
||||
Reference in new issue
Block a user