summaryrefslogblamecommitdiff
path: root/test/files/run/reify_newimpl_19.scala
blob: 0ea8ae6992f61f60a27a5e7422876d6983ee5f61 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

















                                
import scala.reflect.mirror._

object Test extends App {
  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)
  }
}