I’m trying to write the following:
val value: Int = 3
val tpe = typeOf(value) // This is pseudocode. What should
// actually go on this line?
q"""
type U = $tpe
val v: U = $value
"""
Essentially, I need to capture the type of value (Int) in tpe and assign it to U. How does one do this?