From 4990a7ef716bda2c0ec230430f647a22575b14e7 Mon Sep 17 00:00:00 2001 From: Alex Hoppen Date: Tue, 6 Aug 2024 18:02:32 -0700 Subject: [PATCH] Fix build issue when using a Swift 5.8 compiler We were unable to infer the base of the subscript with a Swift 5.8 compiler. --- Tests/SwiftSyntaxMacroExpansionTest/PeerMacroTests.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/SwiftSyntaxMacroExpansionTest/PeerMacroTests.swift b/Tests/SwiftSyntaxMacroExpansionTest/PeerMacroTests.swift index 48cea8d2027..0a9eaebcf6c 100644 --- a/Tests/SwiftSyntaxMacroExpansionTest/PeerMacroTests.swift +++ b/Tests/SwiftSyntaxMacroExpansionTest/PeerMacroTests.swift @@ -58,7 +58,7 @@ final class PeerMacroTests: XCTestCase { .replaceChild( message: SwiftSyntaxMacros.MacroExpansionFixItMessage("add 'async'"), parent: funcDecl, - replacingChildAt: \.signature.effectSpecifiers, + replacingChildAt: \FunctionDeclSyntax.signature.effectSpecifiers, with: newEffects ) ]