blob: 31848738effa31f40584d7033d2c0aa05ae7d927 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
import scala.reflect.runtime.universe._
object Test {
def main(args: Array[String]) {
val mc = new MegaClass
val anns = mc.getClass.getAnnotations.map(_.annotationType.getName).toList.sorted
println(s"class annotations: $anns")
val N = typeTag[MegaClass].tpe.declarations.size // was: error reading Scala signature of MegaClass: 65935
println(s"$N decls via runtime reflection")
}
}
|