blob: 9befd942cfe41db6e23fc7adbd0d79b1efc1b1b7 (
plain) (
tree)
|
|
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
}
}
|