summaryrefslogtreecommitdiff
path: root/test/files/run/retclosure.scala
diff options
context:
space:
mode:
authorLex Spoon <lex@lexspoon.org>2006-11-24 14:02:39 +0000
committerLex Spoon <lex@lexspoon.org>2006-11-24 14:02:39 +0000
commit75327922b4371b3340c59c6f05aaf61502dec558 (patch)
tree4b2ef68c8b5aa944f6a9cd5ae665976f12527dca /test/files/run/retclosure.scala
parent327b87d1c60745e9f33cb2c5f28fcef14f234f74 (diff)
downloadscala-75327922b4371b3340c59c6f05aaf61502dec558.tar.gz
scala-75327922b4371b3340c59c6f05aaf61502dec558.tar.bz2
scala-75327922b4371b3340c59c6f05aaf61502dec558.zip
Diffstat (limited to 'test/files/run/retclosure.scala')
-rw-r--r--test/files/run/retclosure.scala23
1 files changed, 0 insertions, 23 deletions
diff --git a/test/files/run/retclosure.scala b/test/files/run/retclosure.scala
deleted file mode 100644
index d354cb3586..0000000000
--- a/test/files/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]) {
- Console.println(response)
- }
-}