blob: 5616e10b3bca2cf2cf6c556b2b58e1ad8bce47e6 (
plain) (
tree)
|
|
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
}
}
|