From a1f561de3c1a62e3ed55e8b8df1d9e1b48f4a63d Mon Sep 17 00:00:00 2001 From: Tristan Labelle Date: Wed, 25 Dec 2024 10:01:58 -0500 Subject: [PATCH] Workaround for IInspectable --- Generator/Sources/ProjectionModel/Projection+types.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Generator/Sources/ProjectionModel/Projection+types.swift b/Generator/Sources/ProjectionModel/Projection+types.swift index 5a5ef92..9063083 100644 --- a/Generator/Sources/ProjectionModel/Projection+types.swift +++ b/Generator/Sources/ProjectionModel/Projection+types.swift @@ -7,6 +7,9 @@ extension Projection { switch type { case let .bound(boundType): if let specialTypeBinding = try getSpecialTypeBinding(boundType) { + if boundType.definition.namespace == "System", boundType.definition.name == "Object", !outerNullable { + return specialTypeBinding.swiftType.unwrapOptional() + } return specialTypeBinding.swiftType }