summaryrefslogtreecommitdiff
path: root/test/pending/run/reify_newimpl_53.scala
blob: 26645dea6a6f12b4a9825fd6e4d28e3f67dccb03 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import scala.reflect.mirror._

object Test extends App {
  class C[T >: Null] {
    val code = reify{
      val tt = implicitly[TypeTag[T]]
      println("mah typetag is: %s".format(tt))
    }
    println(freeTypes(code))
    val T = freeTypes(code)(0)
    mkToolBox().runExpr(code, Map(T -> definitions.StringClass.asType))
  }

  new C[String]
}