diff options
author | Evgeny Kotelnikov <evgeny.kotelnikov@gmail.com> | 2013-01-19 17:42:12 +0400 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2013-02-07 18:56:20 +0100 |
commit | 96b0eff51e18a1abd9761451e08e63c9a3eb9ea6 (patch) | |
tree | c7706349969b570274dbb9259e29e9c4c3473471 /test | |
parent | 3d318be51f8e8cdec314565920327486212f5020 (diff) | |
download | scala-96b0eff51e18a1abd9761451e08e63c9a3eb9ea6.tar.gz scala-96b0eff51e18a1abd9761451e08e63c9a3eb9ea6.tar.bz2 scala-96b0eff51e18a1abd9761451e08e63c9a3eb9ea6.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.check | 1 | ||||
-rw-r--r-- | test/files/run/t5824.scala | 8 |
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 +} |