aboutsummaryrefslogblamecommitdiff
path: root/tests/disabled/macro/run/reify_renamed_type_spliceable.scala
blob: 6a34d17227c2e8ba0eccbd725a4b9e4798e03665 (plain) (tree)
1
2
3
4
5
6
7
8






                                       
                                             











                        
 
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)
}