summaryrefslogtreecommitdiff
path: root/test/disabled
diff options
context:
space:
mode:
authorSeth Tisue <seth@tisue.net>2015-07-09 18:39:22 -0400
committerSeth Tisue <seth@tisue.net>2015-07-09 18:39:22 -0400
commit70129c97d30dcbdf305c1e012c91e05b999f5cfa (patch)
treebb523ab301843dc8e398febc364dd75ed1b60148 /test/disabled
parentc8110b55a78c830a48e66f3b066d7a060c0d76b2 (diff)
downloadscala-70129c97d30dcbdf305c1e012c91e05b999f5cfa.tar.gz
scala-70129c97d30dcbdf305c1e012c91e05b999f5cfa.tar.bz2
scala-70129c97d30dcbdf305c1e012c91e05b999f5cfa.zip
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.
Diffstat (limited to 'test/disabled')
-rw-r--r--test/disabled/run/indylambda-specialization.scala15
1 files changed, 15 insertions, 0 deletions
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)
+ }
+}