From 79444b1767fcc5d8e4ee52b766e45d6dcd2e2d7b Mon Sep 17 00:00:00 2001 From: Krzysztof Rodak Date: Thu, 11 Sep 2025 09:43:50 +0200 Subject: [PATCH] BridgeJS: fix: switch to direct TypeSyntax initialiser --- Plugins/BridgeJS/Sources/BridgeJSCore/ExportSwift.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Plugins/BridgeJS/Sources/BridgeJSCore/ExportSwift.swift b/Plugins/BridgeJS/Sources/BridgeJSCore/ExportSwift.swift index e44178a8..0b94442a 100644 --- a/Plugins/BridgeJS/Sources/BridgeJSCore/ExportSwift.swift +++ b/Plugins/BridgeJS/Sources/BridgeJSCore/ExportSwift.swift @@ -759,7 +759,7 @@ public class ExportSwift { identifierType.name.text == "Optional", let genericArgs = identifierType.genericArgumentClause?.arguments, genericArgs.count == 1, - let argType = genericArgs.first?.argument + let argType = TypeSyntax(genericArgs.first?.argument) { if let baseType = lookupType(for: argType) { return .optional(baseType) @@ -772,7 +772,7 @@ public class ExportSwift { memberType.name.text == "Optional", let genericArgs = memberType.genericArgumentClause?.arguments, genericArgs.count == 1, - let argType = genericArgs.first?.argument + let argType = TypeSyntax(genericArgs.first?.argument) { if let wrappedType = lookupType(for: argType) { return .optional(wrappedType)