diff options
Diffstat (limited to 'test/files/run/reify_newimpl_45.scala')
-rw-r--r-- | test/files/run/reify_newimpl_45.scala | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/files/run/reify_newimpl_45.scala b/test/files/run/reify_newimpl_45.scala new file mode 100644 index 0000000000..b2b52eaf5b --- /dev/null +++ b/test/files/run/reify_newimpl_45.scala @@ -0,0 +1,12 @@ +import scala.reflect.mirror._ + +object Test extends App { + class C[T >: Null] { + val code = reify{val x: T = "2".asInstanceOf[T]; println("ima worx: %s".format(x)); x} + println(freeTypes(code.tree)) + val T = freeTypes(code.tree)(0) + mkToolBox().runExpr(code.tree, Map(T -> definitions.StringClass.asType)) + } + + new C[String] +}
\ No newline at end of file |