aboutsummaryrefslogblamecommitdiff
path: root/tests/pending/run/reflection-sorted-decls.scala
blob: 9befd942cfe41db6e23fc7adbd0d79b1efc1b1b7 (plain) (tree)
1
2
3
4
5
6
7
8
              
                                         





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