diff options
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/continuations-neg/t3718.check | 4 | ||||
-rw-r--r-- | test/files/continuations-neg/t3718.scala | 3 |
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).##) +} |