我的一些scala注释宏似乎没有得到扩展,有没有一种方法来检查/记录哪些表达式在编译时传递给我的注释宏,因为现在代码doesn甚至没有编译... def virtualize(tree: Tree): Tree = atPos(tree.pos) {
tree match {
case x =>
println("LOG: "+tree) //will only b
有没有办法使用宏而不是从内部类的实例获取父类,而不是run-time reflection? 我有这样一组类: trait IdProvider {
type IdObject = Id.type
case class Id(underlying: Int)
}
case class SomeEntity(id: SomeEntity.Id)
object SomeE