summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorEvgeny Kotelnikov <evgeny.kotelnikov@gmail.com>2013-01-19 17:42:12 +0400
committerEvgeny Kotelnikov <evgeny.kotelnikov@gmail.com>2013-01-22 14:13:04 +0400
commit0a25ee3431d0314c782dd2e6620bc75c4de0d1a4 (patch)
tree130207bea20e8cc2440bcd33259786ed38837c50 /test
parent1e69a0b67a184ca9d0b205a407e34cf85d11372c (diff)
downloadscala-0a25ee3431d0314c782dd2e6620bc75c4de0d1a4.tar.gz
scala-0a25ee3431d0314c782dd2e6620bc75c4de0d1a4.tar.bz2
scala-0a25ee3431d0314c782dd2e6620bc75c4de0d1a4.zip
SI-5824 Fix crashes in reify with _*
Reification crashes if "foo: _*" construct is used. This happens besause type tree is represented either with TypeTree, or with Ident (present case), and `toPreTyperTypedOrAnnotated' only matches of the former. The fix is to cover the latter too. A test is included.
Diffstat (limited to 'test')
-rw-r--r--test/files/run/t5824.check1
-rw-r--r--test/files/run/t5824.scala8
2 files changed, 9 insertions, 0 deletions
diff --git a/test/files/run/t5824.check b/test/files/run/t5824.check
new file mode 100644
index 0000000000..3774da60e5
--- /dev/null
+++ b/test/files/run/t5824.check
@@ -0,0 +1 @@
+a b c
diff --git a/test/files/run/t5824.scala b/test/files/run/t5824.scala
new file mode 100644
index 0000000000..2ad169e2d1
--- /dev/null
+++ b/test/files/run/t5824.scala
@@ -0,0 +1,8 @@
+import scala.reflect.runtime.universe._
+import scala.tools.reflect.Eval
+
+object Test extends App {
+ reify {
+ println("%s %s %s".format(List("a", "b", "c"): _*))
+ }.eval
+}