summaryrefslogtreecommitdiff
path: root/test/files/run/t5418b.scala
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2012-09-18 15:10:19 +0200
committerEugene Burmako <xeno.by@gmail.com>2012-09-18 15:10:19 +0200
commit862a1ede4d416186a1753f8e682d16ffc98817a5 (patch)
tree7bd2ac7fad792146c3347ba7de7096d82220e10c /test/files/run/t5418b.scala
parentfce3f8b2e351494dd8c110b896f731931ae2805e (diff)
downloadscala-862a1ede4d416186a1753f8e682d16ffc98817a5.tar.gz
scala-862a1ede4d416186a1753f8e682d16ffc98817a5.tar.bz2
scala-862a1ede4d416186a1753f8e682d16ffc98817a5.zip
test case closes SI-5418
Now, when the existential reification bug is fixed, I've been able to take a look at SI-5418, and, apparently, the problem with importers has fixed itself during these 9 months of the bug being active.
Diffstat (limited to 'test/files/run/t5418b.scala')
-rw-r--r--test/files/run/t5418b.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/run/t5418b.scala b/test/files/run/t5418b.scala
new file mode 100644
index 0000000000..08e8bb163b
--- /dev/null
+++ b/test/files/run/t5418b.scala
@@ -0,0 +1,11 @@
+import scala.reflect.runtime.universe._
+import scala.reflect.runtime.{currentMirror => cm}
+import scala.tools.reflect.ToolBox
+
+object Test extends App {
+ val tb = cm.mkToolBox()
+ val untyped = reify(new Object().getClass).tree
+ val typed = tb.typeCheck(untyped)
+ println(typed)
+ println(showRaw(typed.tpe))
+} \ No newline at end of file