diff options
author | Grzegorz Kossakowski <grzegorz.kossakowski@gmail.com> | 2012-09-20 02:05:15 -0700 |
---|---|---|
committer | Grzegorz Kossakowski <grzegorz.kossakowski@gmail.com> | 2012-09-20 02:05:15 -0700 |
commit | 4db37e459e9894d6c0ac20177e44062a9088b970 (patch) | |
tree | 4c5d5e61fe752b3c253eea4dcb2a24d73359def8 /test/files/run/t6392a.scala | |
parent | 3b120ff12891968d02296abb60adb9137d335ae2 (diff) | |
parent | b8362d6aa42433ea4d423f7498d5fae155dc68b0 (diff) | |
download | scala-4db37e459e9894d6c0ac20177e44062a9088b970.tar.gz scala-4db37e459e9894d6c0ac20177e44062a9088b970.tar.bz2 scala-4db37e459e9894d6c0ac20177e44062a9088b970.zip |
Merge pull request #1358 from scalamacros/ticket/6392
SI-6392 wraps non-terms before typecheck/eval
Diffstat (limited to 'test/files/run/t6392a.scala')
-rw-r--r-- | test/files/run/t6392a.scala | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/files/run/t6392a.scala b/test/files/run/t6392a.scala new file mode 100644 index 0000000000..3a4f9fd0a5 --- /dev/null +++ b/test/files/run/t6392a.scala @@ -0,0 +1,9 @@ +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 c = tb.parse("object C") + println(tb.eval(c)) +}
\ No newline at end of file |