What is the alternative to using underlying/underlyingArgument/matching on Inlined when generating code? #19764
Unanswered
smarter
asked this question in
Metaprogramming
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The API documentation for these methods states:
But nothing in the API documentation or in https://dotty.epfl.ch/docs/reference/metaprogramming/reflection.html states how to handle Inlined nodes correctly. In fact https://dotty.epfl.ch/docs/reference/metaprogramming/reflection.html#extractors-2 explicitly extracts stuff from an Inlined node and doesn't say anything about safety.
Are the warnings still accurate? If so, what is the appropriate way to extract things from under an Inlined node? Is it OK if and only if the
bindings
field of theInlined
node is empty? When can we rely onbindings
to be empty?Beta Was this translation helpful? Give feedback.
All reactions