summaryrefslogtreecommitdiff
path: root/test/files/run/reflection-simple.scala
blob: fb3feec3cb3e1c97c036abfb9a5faba1eab7e580 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
// a.scala
// Wed May  2 01:01:22 PDT 2012

object Test  {
  def main(args: Array[String]) {
    System.out.println("Running")
    case class Foo(a: Int, b: Int, c: Int)
    val props = reflect.mirror.classToType(classOf[Foo]).members.filter(_.isTerm).map(_.toString)
    props.toList.sorted foreach System.out.println
  }
}