summaryrefslogtreecommitdiff
path: root/test/files/continuations-neg
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-05-03 14:36:14 -0700
committerPaul Phillips <paulp@improving.org>2012-05-03 16:05:35 -0700
commit58f6a1346093db2f407879246884d480ff8d7904 (patch)
treed67237e70a8c206f27d0f9180264da0e446a05d0 /test/files/continuations-neg
parent264cef8f9677c59395166da9be0af0bfe83abfa5 (diff)
downloadscala-58f6a1346093db2f407879246884d480ff8d7904.tar.gz
scala-58f6a1346093db2f407879246884d480ff8d7904.tar.bz2
scala-58f6a1346093db2f407879246884d480ff8d7904.zip
Fix for SI-3718.
And for a bunch of other tickets where we unleash a stack trace rather than printing a sensible error message. But SI-3718 is a continuations plugin crash, now a reasonable if somewhat vague error.
Diffstat (limited to 'test/files/continuations-neg')
-rw-r--r--test/files/continuations-neg/t3718.check4
-rw-r--r--test/files/continuations-neg/t3718.scala3
2 files changed, 7 insertions, 0 deletions
diff --git a/test/files/continuations-neg/t3718.check b/test/files/continuations-neg/t3718.check
new file mode 100644
index 0000000000..659104c1c6
--- /dev/null
+++ b/test/files/continuations-neg/t3718.check
@@ -0,0 +1,4 @@
+t3718.scala:2: error: cannot cps-transform malformed (possibly in shift/reset placement) expression
+ scala.util.continuations.reset((_: Any).##)
+ ^
+one error found
diff --git a/test/files/continuations-neg/t3718.scala b/test/files/continuations-neg/t3718.scala
new file mode 100644
index 0000000000..a0fcb9d869
--- /dev/null
+++ b/test/files/continuations-neg/t3718.scala
@@ -0,0 +1,3 @@
+object Test {
+ scala.util.continuations.reset((_: Any).##)
+}