Permalink
Browse files

SI-5710 has fixed itself

My job here is only to submit tests.
  • Loading branch information...
1 parent 5d54cf9 commit f742aa396b3720329bbeff1a23e50820c2ef06f2 @xeno-by xeno-by committed Mar 9, 2013
Showing with 32 additions and 0 deletions.
  1. +1 −0 test/files/run/t5710-1.check
  2. +15 −0 test/files/run/t5710-1.scala
  3. +1 −0 test/files/run/t5710-2.check
  4. +15 −0 test/files/run/t5710-2.scala
@@ -0,0 +1 @@
+evaluated = (abc,abc)
@@ -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": Any) match { case x => (x, x) }
+ (x, y)
+ };
+
+ val toolbox = cm.mkToolBox()
+ val evaluated = toolbox.eval(code.tree)
+ println("evaluated = " + evaluated)
+}
@@ -0,0 +1 @@
+evaluated = (abc,abc)
@@ -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)
+}

0 comments on commit f742aa3

Please sign in to comment.