Skip to content

Commit 15cb951

Browse files
committed
Use a closure to call the accessor
1 parent 1fc0361 commit 15cb951

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/TestingMacros/Support/TestContentGeneration.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ func makeTestContentRecordDecl(named name: TokenSyntax, in typeName: TypeSyntax?
6868
private nonisolated \(staticKeyword(for: typeName)) let \(name): Testing.__TestContentRecord = (
6969
\(kindExpr), \(kind.commentRepresentation)
7070
0,
71-
unsafe \(accessorName),
71+
unsafe { unsafe \(accessorName)($0, $1, $2, $3) },
7272
\(contextExpr),
7373
0
7474
)

0 commit comments

Comments
 (0)