diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2012-09-18 15:10:19 +0200 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2012-09-18 15:10:19 +0200 |
commit | 862a1ede4d416186a1753f8e682d16ffc98817a5 (patch) | |
tree | 7bd2ac7fad792146c3347ba7de7096d82220e10c /test/files | |
parent | fce3f8b2e351494dd8c110b896f731931ae2805e (diff) | |
download | scala-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')
-rw-r--r-- | test/files/run/t5418b.check | 2 | ||||
-rw-r--r-- | test/files/run/t5418b.scala | 11 |
2 files changed, 13 insertions, 0 deletions
diff --git a/test/files/run/t5418b.check b/test/files/run/t5418b.check new file mode 100644 index 0000000000..875ad08435 --- /dev/null +++ b/test/files/run/t5418b.check @@ -0,0 +1,2 @@ +new Object().getClass()
+TypeRef(ThisType(java.lang), java.lang.Class, List(TypeRef(NoPrefix, newTypeName("?0"), List())))
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 |