aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/pos/t6514.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/pos/t6514.scala')
-rw-r--r--tests/untried/pos/t6514.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/untried/pos/t6514.scala b/tests/untried/pos/t6514.scala
new file mode 100644
index 000000000..7c58605d3
--- /dev/null
+++ b/tests/untried/pos/t6514.scala
@@ -0,0 +1,11 @@
+object Test {
+ def e(msg: String) = new Exception(msg)
+
+ // this code ain't dead.
+ def a(b: Boolean) = {
+ b match {
+ case true => throw e("true")
+ case false => throw e("false")
+ }
+ }
+}