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

class Foo { val bar = 2 }

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