Create and instantiate a class #15125
-
This fails with I'm hoping to write this macro such that this code:
expands into (or something equivalent):
I've been struggling to know how to use the reflect API and build an AST from that mostly because the results of term.show are different than how you actually use the API (for example, when printing, TypeDef shows two parameters but the only constructors that exist take one or three parameters -- and for copy, it's unclear to me what the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I suggest that you look at the examples in this PR: |
Beta Was this translation helpful? Give feedback.
I suggest that you look at the examples in this PR:
#14124 but you will be using experimental API (released in Scala 3.1.3-RC2)