summaryrefslogtreecommitdiff
path: root/test/files
diff options
context:
space:
mode:
authorJames Iry <jamesiry@gmail.com>2013-02-11 11:14:45 -0800
committerJames Iry <jamesiry@gmail.com>2013-02-11 11:14:45 -0800
commitd2696dc8137ef8999c7ebac20403392589988dfd (patch)
treeae95cc50300afae7e6a5a4a944f6c099d60a997d /test/files
parent638d41b650cbaa6216fb15f0e9b6eca7eb499f06 (diff)
parent673cc83f198322b3346be2bddea7ff05bd6f0f5b (diff)
downloadscala-d2696dc8137ef8999c7ebac20403392589988dfd.tar.gz
scala-d2696dc8137ef8999c7ebac20403392589988dfd.tar.bz2
scala-d2696dc8137ef8999c7ebac20403392589988dfd.zip
Merge pull request #2111 from retronym/2.10.x
SI-6514 Avoid spurious dead code warnings
Diffstat (limited to 'test/files')
-rw-r--r--test/files/pos/t6514.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/pos/t6514.scala b/test/files/pos/t6514.scala
new file mode 100644
index 0000000000..7c58605d39
--- /dev/null
+++ b/test/files/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")
+ }
+ }
+}