From 07ae07184ba684476359438c51c8feb507ef1526 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20B=C4=85k?= Date: Sat, 30 Nov 2024 11:58:23 +0100 Subject: [PATCH] Use @retroactive behind complier version check --- Sources/SpyableMacro/Extensions/TypeSyntax+Extensions.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sources/SpyableMacro/Extensions/TypeSyntax+Extensions.swift b/Sources/SpyableMacro/Extensions/TypeSyntax+Extensions.swift index 3246161..872e781 100644 --- a/Sources/SpyableMacro/Extensions/TypeSyntax+Extensions.swift +++ b/Sources/SpyableMacro/Extensions/TypeSyntax+Extensions.swift @@ -101,7 +101,9 @@ extension ArrayTypeSyntax: TypeSyntaxSupportingGenerics { } } +#if compiler(>=6.0) extension GenericArgumentClauseSyntax: @retroactive TypeSyntaxProtocol {} +#endif extension GenericArgumentClauseSyntax: TypeSyntaxSupportingGenerics { fileprivate var nestedTypeSyntaxes: [TypeSyntax] {