From 70129c97d30dcbdf305c1e012c91e05b999f5cfa Mon Sep 17 00:00:00 2001 From: Seth Tisue Date: Thu, 9 Jul 2015 18:39:22 -0400 Subject: temporarily disable failing indylambda test Adriaan and Jason agree that the test is failing because the test itself needs reworking, not because it's showing a real problem. so, disabling it for now in the interest of getting 2.12.0-M2 out the door. --- test/disabled/run/indylambda-specialization.scala | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test/disabled/run/indylambda-specialization.scala (limited to 'test/disabled/run') diff --git a/test/disabled/run/indylambda-specialization.scala b/test/disabled/run/indylambda-specialization.scala new file mode 100644 index 0000000000..2c66073e90 --- /dev/null +++ b/test/disabled/run/indylambda-specialization.scala @@ -0,0 +1,15 @@ +object Test { + def assertApply(expected: Boolean) = { + val frames = Thread.currentThread.getStackTrace.takeWhile(_.getMethodName != "main") + val usesObjectApply = frames.exists(_.getMethodName == "apply") + assert(expected == usesObjectApply, frames.mkString("\n")) + } + def assertSpecialized() = assertApply(false) + def assertUnspecialized() = assertApply(true) + def main(args: Array[String]): Unit = { + ((i: String) => {assertUnspecialized(); i}).apply("") + (() => {assertSpecialized(); 0}).apply() + ((i: Int) => {assertSpecialized(); i}).apply(0) + ((i: Int, j: Int) => {assertSpecialized(); i + j}).apply(0, 0) + } +} -- cgit v1.2.3