summaryrefslogblamecommitdiff
path: root/test/files/run/reflection-sorted-decls.scala
blob: 242f17d9bb10ae6edabcb88d0698bc28fce9806d (plain) (tree)
1
2
3
4
5
6
7
8







                                                                       
object Test  {
  def main(args: Array[String]) {
    class Foo(val a: Int, val b: Int, val c: Int)
    import scala.reflect.runtime.{currentMirror => cm}
    val decls = cm.classSymbol(classOf[Foo]).typeSignature.declarations
    decls.sorted.toList foreach System.out.println
  }
}