From 96dd73146f4317feeb59a242d692977f87c5211d Mon Sep 17 00:00:00 2001 From: Eugene Burmako Date: Sat, 30 Jun 2012 01:45:47 +0200 Subject: reify no longer dealiases symbols and types this uncovers a bug in toolboxes: https://issues.scala-lang.org/browse/SI-6007 however that bug is not critical, so it will be dealt with later --- test/pending/run/reify_newimpl_09c.scala | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 test/pending/run/reify_newimpl_09c.scala (limited to 'test/pending/run/reify_newimpl_09c.scala') diff --git a/test/pending/run/reify_newimpl_09c.scala b/test/pending/run/reify_newimpl_09c.scala new file mode 100644 index 0000000000..e2f4a4923a --- /dev/null +++ b/test/pending/run/reify_newimpl_09c.scala @@ -0,0 +1,20 @@ +import scala.reflect.runtime.universe._ +import scala.tools.reflect.ToolBox +import scala.tools.reflect.Eval + +object Test extends App { + { + def foo[W] = { + type U = W + type T = U + reify { + List[T](2) + } + } + val code = foo[Int] + println(code.tree.freeTypes) + val W = code.tree.freeTypes(2) + cm.mkToolBox().runExpr(code.tree, Map(W -> definitions.IntTpe)) + println(code.eval) + } +} \ No newline at end of file -- cgit v1.2.3