Skip to content

Raw identifiers not supported as argument labels for @Test functions #1167

Closed
@hamishknight

Description

@hamishknight

For e.g:

@Test(arguments: [0])
func foo(`a b`: Int) {}

the macro expansion for @Test forgets to include backticks for the argument labels in the calls it generates:

_ = unsafe try await Testing.__requiringUnsafe(Testing.__requiringTry(Testing.__requiringAwait(foo(a b: arg0))))

Metadata

Metadata

Assignees

Labels

bug🪲 Something isn't workingmacros🔭 Related to Swift macros such as @Test or #expectparameterized-testingRelated to parameterized testing functionalityraw-identifiers🧅 Support for raw identifiers

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions