Closed gohanlon closed 1 year ago
This test is representative of the misdiagnosis:
func testCustomInitEscapingWithMultipleBindings() { assertMacro { """ @MemberwiseInit struct S { @Init(escaping: true) let v, r: T } """ } diagnostics: { """ @MemberwiseInit struct S { @Init(escaping: true) ┬──────────────────── ╰─ 🛑 Custom 'label' can't be applied to multiple bindings let v, r: T } """ } }
Other applications of @Init to multiple bindings are also affected.
@Init
main
Macro should expand without any diagnostics.
0.2.0
Description
This test is representative of the misdiagnosis:
Other applications of
@Init
to multiple bindings are also affected.Checklist
main
branch of this package.Expected behavior
Macro should expand without any diagnostics.
swift-memberwise-init-macro version information
0.2.0