summaryrefslogtreecommitdiff
path: root/test/files/run/reflection-simple.scala
blob: 152d8c4505cf2ebc06856542d5441fd6ee518365 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
// 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)
    import scala.reflect.runtime.{currentMirror => cm}
    val props = cm.reflectClass(classOf[Foo]).symbol.typeSignature.members.filter(_.isTerm).map(_.toString)
    props.toList.sorted foreach System.out.println
  }
}