Skip to content

Commit 1a8726b

Browse files
committed
Don't use opaque result types in parameters :(
1 parent efbd09f commit 1a8726b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/SwiftSyntaxMacros/MacroReplacement.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,8 @@ extension MacroDeclSyntax {
275275
/// Given a freestanding macro expansion syntax node that references this
276276
/// macro declaration, expand the macro by substituting the arguments from
277277
/// the macro expansion into the parameters that are used in the definition.
278-
public func expand(
279-
_ node: some FreestandingMacroExpansionSyntax,
278+
public func expand<Node: FreestandingMacroExpansionSyntax>(
279+
_ node: Node,
280280
definition: MacroExpansionExprSyntax,
281281
replacements: [MacroDefinition.Replacement]
282282
) -> ExprSyntax {

0 commit comments

Comments
 (0)