Skip to content

Commit

Permalink
Workaround for IInspectable
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanlabelle committed Dec 25, 2024
1 parent 6ad2441 commit a1f561d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Generator/Sources/ProjectionModel/Projection+types.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit a1f561d

Please sign in to comment.