diff options
author | Burak Emir <emir@epfl.ch> | 2006-08-02 10:27:50 +0000 |
---|---|---|
committer | Burak Emir <emir@epfl.ch> | 2006-08-02 10:27:50 +0000 |
commit | 58749ce64b6c24be88ce5b0a1ef33685bcf22c89 (patch) | |
tree | 51ad76a3ac956f5fcc519c435a9de780abcb0650 | |
parent | 73fc9aef1642d014783aaa0b04cca81a8cbbf1a3 (diff) | |
download | scala-58749ce64b6c24be88ce5b0a1ef33685bcf22c89.tar.gz scala-58749ce64b6c24be88ce5b0a1ef33685bcf22c89.tar.bz2 scala-58749ce64b6c24be88ce5b0a1ef33685bcf22c89.zip |
reenabled dead-branch checking
-rw-r--r-- | src/compiler/scala/tools/nsc/matching/PatternMatchers.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/matching/PatternMatchers.scala b/src/compiler/scala/tools/nsc/matching/PatternMatchers.scala index 3cd260efc3..d234f46c3d 100644 --- a/src/compiler/scala/tools/nsc/matching/PatternMatchers.scala +++ b/src/compiler/scala/tools/nsc/matching/PatternMatchers.scala @@ -128,7 +128,7 @@ trait PatternMatchers requires (TransMatcher with PatternNodes) extends AnyRef w protected def updateBody(tree: Body, bound: Array[ValDef], guard: Tree , body: Tree): Unit = { if (tree.guard(tree.guard.length - 1) == EmptyTree) { - //unit.error(body.pos, "unreachable code"); + cunit.error(body.pos, "unreachable code"); } else { val bd = new Array[Array[ValDef]](tree.bound.length + 1); val ng = new Array[Tree](tree.guard.length + 1); |