summaryrefslogtreecommitdiff
path: root/test/continuations/neg/function2.check
diff options
context:
space:
mode:
Diffstat (limited to 'test/continuations/neg/function2.check')
-rw-r--r--test/continuations/neg/function2.check6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/continuations/neg/function2.check b/test/continuations/neg/function2.check
new file mode 100644
index 0000000000..4833057652
--- /dev/null
+++ b/test/continuations/neg/function2.check
@@ -0,0 +1,6 @@
+function2.scala:11: error: type mismatch;
+ found : () => Int
+ required: () => Int @util.continuations.package.cps[Int]
+ val g: () => Int @cps[Int] = f
+ ^
+one error found