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

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

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