summaryrefslogtreecommitdiff
path: root/test/pending/run/t5427a.scala
blob: a7d20922dba579221e99d201197ed174f5f3c229 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
import scala.reflect.runtime.universe._

object Foo { val bar = 2 }

object Test extends App {
  val tpe = getType(Foo)
  val bar = tpe.nonPrivateMember(TermName("bar"))
  val value = getValue(Foo, bar)
  println(value)
}