aboutsummaryrefslogtreecommitdiff
path: root/tests/disabled/macro/run/reify_renamed_type_spliceable.scala
blob: 6a34d17227c2e8ba0eccbd725a4b9e4798e03665 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval

abstract class C {
  type T >: Null
}

object Test extends dotty.runtime.LegacyApp {
  def foo(c: C) = {
    import c.{T => U}
    reify {
      val x: U = null
    }
  }

  val expr = foo(new C {
    type T = AnyRef
  })

  println(expr.eval)
}