diff options
Diffstat (limited to 'test/pending/run/idempotency-partial-functions.scala')
-rw-r--r-- | test/pending/run/idempotency-partial-functions.scala | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/test/pending/run/idempotency-partial-functions.scala b/test/pending/run/idempotency-partial-functions.scala deleted file mode 100644 index c9d650ca89..0000000000 --- a/test/pending/run/idempotency-partial-functions.scala +++ /dev/null @@ -1,28 +0,0 @@ -import scala.reflect.runtime.universe._ -import scala.reflect.runtime.{currentMirror => cm} -import scala.tools.reflect.{ToolBox, ToolBoxError} -import scala.tools.reflect.Eval - -// Related to SI-6187 -// -// Moved to pending as we are currently blocked by the inability -// to reify the parent types of the anonymous function class, -// which are not part of the tree, but rather only part of the -// ClassInfoType. -object Test extends App { - val partials = reify { - List((false,true)) collect { case (x,true) => x } - } - println(Seq(show(partials), showRaw(partials)).mkString("\n\n")) - try { - println(partials.eval) - } catch { - case e: ToolBoxError => println(e) - } - val tb = cm.mkToolBox() - val tpartials = tb.typecheck(partials.tree) - println(tpartials) - val rtpartials = tb.untypecheck(tpartials) - println(tb.eval(rtpartials)) -} -Test.main(null)
\ No newline at end of file |