Instantiating a forwarder trait #16366
Unanswered
kubukoz
asked this question in
Metaprogramming
Replies: 1 comment 3 replies
-
I don't think you should be calling methodSymbols twice, that will create two sets of independent symbols |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I'm trying to build a macro that builds a proxy for arbitrary traits. I'm having trouble using the parameters the method is called with.
Here's what the macro looks like:
I'm trying it with this trait:
and the error I'm getting is:
I've tried dozens of combinations of moving things around, changing owners, different ways to refer to the parameter, and I keep running into the same issue. I would appreciate any and all help and resources on this.
As you can see, I'm using
-Xcheck-macros
and-Xcheck:all
, but they don't offer any help.Related: #13571
Beta Was this translation helpful? Give feedback.
All reactions