aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/run/reify_renamed_type_local_to_reifee.scala
blob: 01280e99319b50259838d96b6846d3473e940ca1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval

object O {
  type A = Unit
}

object Test extends dotty.runtime.LegacyApp {
  val expr = reify {
    import O.{A => X}

    val a: X = ()

    object P {
      type B = Unit
    }

    import P.{B => Y}

    val b: Y = ()
  }

  println(expr.eval)
}