PeerMacro Role does not work together with AccessorMacro

Hi,
I'm developing an attached macro that is supposed to add an accessor to the type, as well as a peer. The code is very similar to the Clamping example in the Attached Macro Proposal.

However, the peer code is not generated. Somebody already filed an issue here, with no response besides mine.

Is there a chance that this is going to be fixed soon? Is there a workaround?

It tried to put the two roles into two separate macros. The code generation of the peer works then, but an error is shown that the peer is not visible from the code of the added accessor:

Thanks for your help!

1 Like