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

class Foo { val bar = 2 }

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