summaryrefslogtreecommitdiff
path: root/test/pending/run/reify_newimpl_10.scala
blob: 791e52943a5712aa36fc591c32b6720d1e767d42 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import scala.reflect.runtime.universe._
import scala.tools.reflect.ToolBox
import scala.tools.reflect.Eval

object Test extends App {
  {
    type T = Int
    implicit val tt = implicitly[TypeTag[String]].asInstanceOf[TypeTag[T]] // this "mistake" is made for a reason!
    val code = reify {
      List[T](2)
    }
    println(code.eval)
  }
}