summaryrefslogtreecommitdiff
path: root/test/files/continuations-neg
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-04-05 10:31:22 -0700
committerPaul Phillips <paulp@improving.org>2012-04-05 11:23:37 -0700
commit37eabf615afe3de9733ea41cc9c522df3e2a6b87 (patch)
tree459ff741c38fc98a60ccbce028aa944259ae06d3 /test/files/continuations-neg
parentbb4935e92c26778a1d1096cd5cd66812a9122f66 (diff)
downloadscala-37eabf615afe3de9733ea41cc9c522df3e2a6b87.tar.gz
scala-37eabf615afe3de9733ea41cc9c522df3e2a6b87.tar.bz2
scala-37eabf615afe3de9733ea41cc9c522df3e2a6b87.zip
Fix for continuations issue.
Avoid explicit type arguments which don't conform to bounds where they could be successfully inferred. I had to disable one "neg" test which is no longer neg. Can anyone clue me in as to whether it is important?
Diffstat (limited to 'test/files/continuations-neg')
-rw-r--r--test/files/continuations-neg/infer0.check4
-rw-r--r--test/files/continuations-neg/infer0.scala14
2 files changed, 0 insertions, 18 deletions
diff --git a/test/files/continuations-neg/infer0.check b/test/files/continuations-neg/infer0.check
deleted file mode 100644
index 1dd072ef09..0000000000
--- a/test/files/continuations-neg/infer0.check
+++ /dev/null
@@ -1,4 +0,0 @@
-infer0.scala:11: error: cannot cps-transform expression 8: type arguments [Int(8),String,Int] do not conform to method shiftUnit's type parameter bounds [A,B,C >: B]
- test(8)
- ^
-one error found
diff --git a/test/files/continuations-neg/infer0.scala b/test/files/continuations-neg/infer0.scala
deleted file mode 100644
index 9cf69c5d35..0000000000
--- a/test/files/continuations-neg/infer0.scala
+++ /dev/null
@@ -1,14 +0,0 @@
-// $Id$
-
-import scala.util.continuations._
-
-
-object Test {
-
- def test(x: => Int @cpsParam[String,Int]) = 7
-
- def main(args: Array[String]): Any = {
- test(8)
- }
-
-} \ No newline at end of file