I wan to infer an implicit value of an AppliedType
, here's what I've done
val valueType = accessorTree.returnType
val encoderType = tq"DatumEncoder[$valueType]" // returns a Tree
val encoder = c.inferImplicitValue(encoderType) // require a Type
But the tq
returns a Tree
How Can I convert it to a Type