summaryrefslogblamecommitdiff
path: root/test/files/run/reflection-sorted-decls.scala
blob: 5616e10b3bca2cf2cf6c556b2b58e1ad8bce47e6 (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.filter(!_.isMethod) foreach System.out.println
  }
}