summaryrefslogblamecommitdiff
path: root/test/files/run/reify_newimpl_13.scala
blob: 1b2b8cb529ca14c95cd904ca70685167058d9ee5 (plain) (tree)
1
2
3


                                       

















                                  
import scala.reflect.runtime.universe._
import scala.tools.reflect.ToolBox
import scala.tools.reflect.Eval

object Test extends App {
  {
    class C[T] {
      val code = reify {
        List[T](2.asInstanceOf[T])
      }
      println(code.eval)
    }

    try {
      new C[Int]
    } catch {
      case ex: Throwable =>
        println(ex)
    }
  }
}