diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2013-03-09 13:56:03 +0100 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2013-03-09 13:56:03 +0100 |
commit | f742aa396b3720329bbeff1a23e50820c2ef06f2 (patch) | |
tree | 783391562a608d1826c6b4c30bcc620a705ea9dd /test/files/run/t5710-2.scala | |
parent | 5d54cf9e375d796c59b1dd488c15f88f4bfb14d6 (diff) | |
download | scala-f742aa396b3720329bbeff1a23e50820c2ef06f2.tar.gz scala-f742aa396b3720329bbeff1a23e50820c2ef06f2.tar.bz2 scala-f742aa396b3720329bbeff1a23e50820c2ef06f2.zip |
SI-5710 has fixed itself
My job here is only to submit tests.
Diffstat (limited to 'test/files/run/t5710-2.scala')
-rw-r--r-- | test/files/run/t5710-2.scala | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/files/run/t5710-2.scala b/test/files/run/t5710-2.scala new file mode 100644 index 0000000000..6d2129cca2 --- /dev/null +++ b/test/files/run/t5710-2.scala @@ -0,0 +1,15 @@ +import scala.reflect.runtime.universe._ +import scala.reflect.runtime.{universe => ru} +import scala.reflect.runtime.{currentMirror => cm} +import scala.tools.reflect.ToolBox + +object Test extends App { + val code = reify { + val (x, y) = "abc" match { case x => (x, x) } + (x, y) + }; + + val toolbox = cm.mkToolBox() + val evaluated = toolbox.eval(code.tree) + println("evaluated = " + evaluated) +}
\ No newline at end of file |