summaryrefslogtreecommitdiff
path: root/test/files/run/reify_inner2.scala
blob: f82eff8f0307421279644ec58d9409b84706d5ba (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval

object Test extends App {
  reify {
    class C {
      object D {
        val x = 2
      }
    }

    val outer = new C()
    val inner = outer.D
    println(inner.x)
  }.eval
}