summaryrefslogtreecommitdiff
path: root/test/files/run/t7407b.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/t7407b.scala')
-rw-r--r--test/files/run/t7407b.scala20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/files/run/t7407b.scala b/test/files/run/t7407b.scala
new file mode 100644
index 0000000000..b0c00878b5
--- /dev/null
+++ b/test/files/run/t7407b.scala
@@ -0,0 +1,20 @@
+object Test {
+
+ def main(args: Array[String]) {
+ println(foo(true))
+ println(foo(false))
+ }
+
+ def foo(b: Boolean): String = {
+ try {
+ if(b)
+ return "Hello"
+ else
+ "abc"
+ } finally {
+ 10 match {case x => ()}
+ }
+ }
+
+}
+