summaryrefslogtreecommitdiff
path: root/test/files/continuations-neg/function3.check
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/continuations-neg/function3.check')
-rw-r--r--test/files/continuations-neg/function3.check6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/files/continuations-neg/function3.check b/test/files/continuations-neg/function3.check
new file mode 100644
index 0000000000..4705ad9ed9
--- /dev/null
+++ b/test/files/continuations-neg/function3.check
@@ -0,0 +1,6 @@
+function3.scala:10: error: type mismatch;
+ found : Int @scala.util.continuations.cpsParam[Int,Int]
+ required: Int
+ val g: () => Int = () => shift { k: (Int=>Int) => k(7) }
+ ^
+one error found