Type Parameters on Scala Macro Annotations
I'm trying to use macro annotations in scala, where my macro annotation would take an argument of another type. It would then use scala reflection to look at the passed in type, and add some methods as appropriate.Eg. trait MyTrait { def x: Int def y: Float } @MyAnnotation class MyClass //<-- somehow, this annotation should reference MyTrait class MyAnnotation(val target: Any) extends StaticAnnotation { def macroTransform(annottees: Any*) = macro MyAnnotationImpl.impl } object MyAnnotationImpl { def impl(c: Context)(annottees: c.Expr[Any]*): c.Expr[Any] = { // if I can get a handle on the type