aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/run/retclosure.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pending/run/retclosure.scala')
-rw-r--r--tests/pending/run/retclosure.scala23
1 files changed, 0 insertions, 23 deletions
diff --git a/tests/pending/run/retclosure.scala b/tests/pending/run/retclosure.scala
deleted file mode 100644
index 0f4b823c3..000000000
--- a/tests/pending/run/retclosure.scala
+++ /dev/null
@@ -1,23 +0,0 @@
-/* Test return expressions inside closures.
- *
- * See bug#834 */
-
-object Test {
- def response: String = {
- def check: Option[String] = {
- val closure: String=>Nothing =
- p => return Some("some problem") // should return from check
-
- closure("whatever")
- }
-
- check match {
- case Some(problem) => "check failed: " + problem
- case None => "ok"
- }
- }
-
- def main(args: Array[String]): Unit = {
- Console.println(response)
- }
-}