diff options
author | Seth Tisue <seth@tisue.net> | 2015-07-09 18:44:34 -0400 |
---|---|---|
committer | Seth Tisue <seth@tisue.net> | 2015-07-09 18:44:34 -0400 |
commit | 02c3bac0b2c534ff8a8bbdb544034bf68a0be334 (patch) | |
tree | bb523ab301843dc8e398febc364dd75ed1b60148 /test/files | |
parent | c8110b55a78c830a48e66f3b066d7a060c0d76b2 (diff) | |
parent | 70129c97d30dcbdf305c1e012c91e05b999f5cfa (diff) | |
download | scala-02c3bac0b2c534ff8a8bbdb544034bf68a0be334.tar.gz scala-02c3bac0b2c534ff8a8bbdb544034bf68a0be334.tar.bz2 scala-02c3bac0b2c534ff8a8bbdb544034bf68a0be334.zip |
Merge pull request #4618 from SethTisue/disable-indylambda-specialization-for-m2
temporarily disable failing indylambda test
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/run/indylambda-specialization.scala | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/test/files/run/indylambda-specialization.scala b/test/files/run/indylambda-specialization.scala deleted file mode 100644 index 2c66073e90..0000000000 --- a/test/files/run/indylambda-specialization.scala +++ /dev/null @@ -1,15 +0,0 @@ -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) - } -} |