blob: f7cd05158dbdd9d64958ca7a7de7363c6773b47e (
plain) (
tree)
|
|
import scala.reflect.runtime.universe._
object Foo { val bar = 2 }
object Test extends App {
val tpe = getType(Foo)
val bar = tpe.nonPrivateMember(newTermName("bar"))
val value = getValue(Foo, bar)
println(value)
}
|