diff options
Diffstat (limited to 'test/continuations/neg/trycatch2.check')
-rw-r--r-- | test/continuations/neg/trycatch2.check | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/continuations/neg/trycatch2.check b/test/continuations/neg/trycatch2.check new file mode 100644 index 0000000000..5ff2838bad --- /dev/null +++ b/test/continuations/neg/trycatch2.check @@ -0,0 +1,7 @@ +trycatch2.scala:11: error: only simple cps types allowed in try/catch blocks (found: Int @scala.util.continuations.cpsParam[String,Int]) + def foo1 = try { + ^ +trycatch2.scala:19: error: only simple cps types allowed in try/catch blocks (found: Int @scala.util.continuations.cpsParam[String,Int]) + def foo2 = try { + ^ +two errors found |