summaryrefslogtreecommitdiff
path: root/test/continuations/neg/t2285.check
diff options
context:
space:
mode:
Diffstat (limited to 'test/continuations/neg/t2285.check')
-rw-r--r--test/continuations/neg/t2285.check6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/continuations/neg/t2285.check b/test/continuations/neg/t2285.check
new file mode 100644
index 0000000000..d5dff6a4f2
--- /dev/null
+++ b/test/continuations/neg/t2285.check
@@ -0,0 +1,6 @@
+t2285.scala:9: error: type mismatch;
+ found : Int @scala.util.continuations.cpsParam[String,String] @scala.util.continuations.cpsSynth
+ required: Int @scala.util.continuations.cpsParam[Int,String]
+ def foo() = reset { bar(); 7 }
+ ^
+one error found