summaryrefslogtreecommitdiff
path: root/test/pending/run/reify_newimpl_46.scala
blob: 840d695e83fda4ea983db887155c1d9fd504e485 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
import scala.reflect.mirror._

object Test extends App {
  class C[T[_] >: Null] {
    val code = reify{val x: T[String] = null; println("ima worx"); x}
    println(freeTypes(code))
    val T = freeTypes(code)(0)
    mkToolBox().runExpr(code, Map(T -> definitions.ListClass.asType))
  }

  new C[List]
}