summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/Typers.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-05-26 13:46:42 -0700
committerPaul Phillips <paulp@improving.org>2012-05-26 15:39:04 -0700
commitbcc82808ecf056affecf11b14f3ad850ad21d773 (patch)
tree6ef9df7e8b5dff67c7c0bf055d042f81c5c2ca2d /src/compiler/scala/tools/nsc/typechecker/Typers.scala
parente4b8c063ed01db93c2b7a87b673c7991a44f04df (diff)
downloadscala-bcc82808ecf056affecf11b14f3ad850ad21d773.tar.gz
scala-bcc82808ecf056affecf11b14f3ad850ad21d773.tar.bz2
scala-bcc82808ecf056affecf11b14f3ad850ad21d773.zip
Handled some of our new exhaustiveness warnings.
Who could have suspected it would actually be right most of the time?
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Typers.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Typers.scala5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Typers.scala b/src/compiler/scala/tools/nsc/typechecker/Typers.scala
index 75174ca494..e643a91da7 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Typers.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Typers.scala
@@ -2523,7 +2523,7 @@ trait Typers extends Modes with Adaptations with Taggings {
def typedImport(imp : Import) : Import = (transformed remove imp) match {
case Some(imp1: Import) => imp1
- case None => log("unhandled import: "+imp+" in "+unit); imp
+ case _ => log("unhandled import: "+imp+" in "+unit); imp
}
private def isWarnablePureExpression(tree: Tree) = tree match {
case EmptyTree | Literal(Constant(())) => false
@@ -4179,7 +4179,8 @@ trait Typers extends Modes with Adaptations with Taggings {
nme.update,
Apply(Select(mkCall(nme.apply), prefix) setPos fun.pos, args) setPos tree.pos
)
- }
+ case _ => EmptyTree
+ }
}
val tree1 = qual match {