summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBurak Emir <emir@epfl.ch>2006-08-02 11:08:44 +0000
committerBurak Emir <emir@epfl.ch>2006-08-02 11:08:44 +0000
commit793151ef0740333b20759bdb3b90011b8d126367 (patch)
treed4d503840dcc9003e52f06c97e28ce5e89faa938
parent89dba633f0257d5af484edd283879bd2f033592f (diff)
downloadscala-793151ef0740333b20759bdb3b90011b8d126367.tar.gz
scala-793151ef0740333b20759bdb3b90011b8d126367.tar.bz2
scala-793151ef0740333b20759bdb3b90011b8d126367.zip
fixed unreachable case statements
-rw-r--r--src/compiler/scala/tools/nsc/transform/LiftCode.scala4
-rw-r--r--src/compiler/scala/tools/nsc/util/ShowPickled.scala1
2 files changed, 2 insertions, 3 deletions
diff --git a/src/compiler/scala/tools/nsc/transform/LiftCode.scala b/src/compiler/scala/tools/nsc/transform/LiftCode.scala
index 64912c6b5f..9f94832cb0 100644
--- a/src/compiler/scala/tools/nsc/transform/LiftCode.scala
+++ b/src/compiler/scala/tools/nsc/transform/LiftCode.scala
@@ -223,8 +223,8 @@ abstract class LiftCode extends Transform {
if (value.isInstanceOf[reflect.ImplicitMethodType]) "scala.reflect.ImplicitMethodType" else "scala.reflect.MethodType"
case x =>
"scala.reflect."+x.caseName
- case _ =>
- ""
+ //case _ => // bq:unreachable code
+ // ""
}
def objectName(value: Any): String = value match {
diff --git a/src/compiler/scala/tools/nsc/util/ShowPickled.scala b/src/compiler/scala/tools/nsc/util/ShowPickled.scala
index 63130e70a5..13db4d8964 100644
--- a/src/compiler/scala/tools/nsc/util/ShowPickled.scala
+++ b/src/compiler/scala/tools/nsc/util/ShowPickled.scala
@@ -30,7 +30,6 @@ object ShowPickled extends Names {
case TYPEBOUNDStpe => "TYPEBOUNDStpe";
case REFINEDtpe => "REFINEDtpe";
case CLASSINFOtpe => "CLASSINFOtpe";
- case CLASSINFOtpe => "CLASSINFOtpe";
case METHODtpe => "METHODtpe";
case POLYtpe => "POLYtpe";
case LITERALunit => "LITERALunit";