blob: 9980d79999e6be4ae9528baf187f6d1554821f14 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
object Test {
def main(args: Array[String]) {
trait T1 { def a: Int; def c: Int }
trait T2 { def a: Int; def b: Int }
class Bar(val x: Int)
class Foo(val a: Int, val b: Int, val c: Int) extends Bar(a + b + c) with T1 with T2
import scala.reflect.runtime.{currentMirror => cm}
val members = cm.classSymbol(classOf[Foo]).typeSignature.members
members.sorted.toList foreach System.out.println
}
}
|