swift-macro-examples icon indicating copy to clipboard operation
swift-macro-examples copied to clipboard

MemberMacro does not work when attached to a local type within a function

Open miku1958 opened this issue 2 years ago • 2 comments

For example, After I move ShippingOptions inside the function, the compiler will report an error:

image image

miku1958 avatar May 23 '23 13:05 miku1958

Hi

Ailyn03940 avatar Aug 16 '25 21:08 Ailyn03940

https://github.com/DougGregor/swift-macro-examples/issues/29

Ailyn03940 avatar Aug 16 '25 21:08 Ailyn03940