Skip to content

Commit

Permalink
Use @retroactive behind complier version check
Browse files Browse the repository at this point in the history
  • Loading branch information
Matejkob committed Nov 30, 2024
1 parent 79f0577 commit 07ae071
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/SpyableMacro/Extensions/TypeSyntax+Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ extension ArrayTypeSyntax: TypeSyntaxSupportingGenerics {
}
}

#if compiler(>=6.0)
extension GenericArgumentClauseSyntax: @retroactive TypeSyntaxProtocol {}
#endif

extension GenericArgumentClauseSyntax: TypeSyntaxSupportingGenerics {
fileprivate var nestedTypeSyntaxes: [TypeSyntax] {
Expand Down

0 comments on commit 07ae071

Please sign in to comment.