summaryrefslogblamecommitdiff
path: root/test/files/run/t7556/Test_2.scala
blob: a78c917ed802ddc321cceea066767e3c1b7a7ebc (plain) (tree)
1
2
3
4
5
6
7
8






                                                                                     
                                                                                                        


                                               
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.decls.size // was:  error reading Scala signature of MegaClass: 65935
    println(s"$N decls via runtime reflection")
  }
}