diff options
author | James Iry <jamesiry@gmail.com> | 2013-02-11 11:14:45 -0800 |
---|---|---|
committer | James Iry <jamesiry@gmail.com> | 2013-02-11 11:14:45 -0800 |
commit | d2696dc8137ef8999c7ebac20403392589988dfd (patch) | |
tree | ae95cc50300afae7e6a5a4a944f6c099d60a997d /test/files/pos | |
parent | 638d41b650cbaa6216fb15f0e9b6eca7eb499f06 (diff) | |
parent | 673cc83f198322b3346be2bddea7ff05bd6f0f5b (diff) | |
download | scala-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/pos')
-rw-r--r-- | test/files/pos/t6514.scala | 11 |
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") + } + } +} |