DougGregor / swift-macro-examples

Example macros for the Swift macros effort

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"init" can't be use in named

miku1958 opened this issue · comments

If I didn't add named(init), this error will occur:

Declaration name 'init' is not covered by macro

If I add it, this error will occur

Expected '(' for initializer parameters
Expected expression in list of expressions
Initializers may only be declared within a type

Ok, named(`init`) works