summaryrefslogtreecommitdiff
path: root/test/pending/run/reify_newimpl_09c.scala
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2012-06-30 01:45:47 +0200
committerEugene Burmako <xeno.by@gmail.com>2012-07-02 13:21:32 +0200
commit96dd73146f4317feeb59a242d692977f87c5211d (patch)
treeb659995dc470be408db317771d147d1035826384 /test/pending/run/reify_newimpl_09c.scala
parentc18414d6e1ba89882ba57266bfe96d85fb57713f (diff)
downloadscala-96dd73146f4317feeb59a242d692977f87c5211d.tar.gz
scala-96dd73146f4317feeb59a242d692977f87c5211d.tar.bz2
scala-96dd73146f4317feeb59a242d692977f87c5211d.zip
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
Diffstat (limited to 'test/pending/run/reify_newimpl_09c.scala')
-rw-r--r--test/pending/run/reify_newimpl_09c.scala20
1 files changed, 20 insertions, 0 deletions
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