aboutsummaryrefslogtreecommitdiff
path: root/tests/disabled/macro/run/reify_inner3.scala
blob: 004041b7dc22b248825316d0ff08630d8dd613eb (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 dotty.runtime.LegacyApp {
  reify {
    object C {
      class D {
        val x = 2
      }
    }

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