diff options
author | Adriaan Moors <adriaan.moors@epfl.ch> | 2012-05-24 11:33:34 +0200 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@epfl.ch> | 2012-05-28 12:58:03 +0200 |
commit | fddd576b1183e394cdfb47f074fe7918a37644b6 (patch) | |
tree | 6600969e7bf4af33c5d65cbeef3db92e5dd1b813 /src/compiler | |
parent | bcc82808ecf056affecf11b14f3ad850ad21d773 (diff) | |
download | scala-fddd576b1183e394cdfb47f074fe7918a37644b6.tar.gz scala-fddd576b1183e394cdfb47f074fe7918a37644b6.tar.bz2 scala-fddd576b1183e394cdfb47f074fe7918a37644b6.zip |
don't check exhaustivity involving user-defined unapplySeq
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/PatternMatching.scala | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/PatternMatching.scala b/src/compiler/scala/tools/nsc/typechecker/PatternMatching.scala index 4d66fb5617..b9aa2c73fd 100644 --- a/src/compiler/scala/tools/nsc/typechecker/PatternMatching.scala +++ b/src/compiler/scala/tools/nsc/typechecker/PatternMatching.scala @@ -1973,6 +1973,7 @@ trait PatternMatching extends Transform with TypingTransformers with ast.TreeDSL case Some(0) if testedBinder.tpe.typeSymbol == ListClass => // extractor.symbol.owner == SeqFactory EqualityCond(binderToUniqueTree(p.prevBinder), unique(Ident(NilModule) setType NilModule.tpe)) case _ => + backoff = true super.treeMakerToCond(tm) } case ExtractorTreeMaker(_, _, _, _) => |