diff options
author | Grzegorz Kossakowski <grzegorz.kossakowski@gmail.com> | 2012-09-20 07:13:50 -0700 |
---|---|---|
committer | Grzegorz Kossakowski <grzegorz.kossakowski@gmail.com> | 2012-09-20 07:13:50 -0700 |
commit | 52ea3cc76f59e5518ef9ba5af8cb5819c41594c9 (patch) | |
tree | c663d1405bb875a793f924def86f2b1cb3e79f1b /test/files/run/t5418b.scala | |
parent | 4db37e459e9894d6c0ac20177e44062a9088b970 (diff) | |
parent | 862a1ede4d416186a1753f8e682d16ffc98817a5 (diff) | |
download | scala-52ea3cc76f59e5518ef9ba5af8cb5819c41594c9.tar.gz scala-52ea3cc76f59e5518ef9ba5af8cb5819c41594c9.tar.bz2 scala-52ea3cc76f59e5518ef9ba5af8cb5819c41594c9.zip |
Merge pull request #1338 from scalamacros/ticket/5418
existentially typed macro expansions now work fine
Diffstat (limited to 'test/files/run/t5418b.scala')
-rw-r--r-- | test/files/run/t5418b.scala | 11 |
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 |