From 58f6a1346093db2f407879246884d480ff8d7904 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Thu, 3 May 2012 14:36:14 -0700 Subject: 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. --- test/files/continuations-neg/t3718.check | 4 ++++ test/files/continuations-neg/t3718.scala | 3 +++ 2 files changed, 7 insertions(+) create mode 100644 test/files/continuations-neg/t3718.check create mode 100644 test/files/continuations-neg/t3718.scala (limited to 'test/files/continuations-neg') 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).##) +} -- cgit v1.2.3