aboutsummaryrefslogblamecommitdiff
path: root/tests/pending/run/reify_newimpl_11.scala
blob: bb08808c2c723728d89c79498e173f17cec50300 (plain) (tree)
1
2
3
4
5



                                       
                                             












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

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

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