From d46e20b4c551db3ea708b2358967bede1a4dbf0d Mon Sep 17 00:00:00 2001 From: Eric Bariaux <375613+ebariaux@users.noreply.github.com> Date: Thu, 18 Sep 2025 07:21:15 +0200 Subject: [PATCH] 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 --- Sources/ComplexModule/Complex+StringConvertible.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/ComplexModule/Complex+StringConvertible.swift b/Sources/ComplexModule/Complex+StringConvertible.swift index 85e7f78..778bc49 100644 --- a/Sources/ComplexModule/Complex+StringConvertible.swift +++ b/Sources/ComplexModule/Complex+StringConvertible.swift @@ -16,6 +16,7 @@ extension Complex: CustomStringConvertible { } } +@_unavailableInEmbedded extension Complex: CustomDebugStringConvertible { public var debugDescription: String { "Complex<\(RealType.self)>(\(String(reflecting: x)), \(String(reflecting: y)))"