diff options
author | Grzegorz Kossakowski <grzegorz.kossakowski@gmail.com> | 2014-10-09 11:16:40 +0200 |
---|---|---|
committer | Grzegorz Kossakowski <grzegorz.kossakowski@gmail.com> | 2014-10-09 11:16:40 +0200 |
commit | 22233f40f641815fe7b9304bb386ee27c8422603 (patch) | |
tree | 1f74d6849cb6fcde1c6fde5eecbd1f4fdfc67d26 /src/compiler | |
parent | 19d1c819033c0c739342225d48a3e1d153958c36 (diff) | |
parent | ff051e29eae9139a688664f3531028cd89df4c75 (diff) | |
download | scala-22233f40f641815fe7b9304bb386ee27c8422603.tar.gz scala-22233f40f641815fe7b9304bb386ee27c8422603.tar.bz2 scala-22233f40f641815fe7b9304bb386ee27c8422603.zip |
Merge pull request #4038 from adriaanm/t8894v2.11.3
SI-8894 dealias when looking at tuple components
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/nsc/transform/patmat/MatchAnalysis.scala | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/transform/patmat/MatchAnalysis.scala b/src/compiler/scala/tools/nsc/transform/patmat/MatchAnalysis.scala index a8852a3ff3..21e90b1d78 100644 --- a/src/compiler/scala/tools/nsc/transform/patmat/MatchAnalysis.scala +++ b/src/compiler/scala/tools/nsc/transform/patmat/MatchAnalysis.scala @@ -172,7 +172,6 @@ trait TreeAndTypeAnalysis extends Debugging { // a type is "uncheckable" (for exhaustivity) if we don't statically know its subtypes (i.e., it's unsealed) // we consider tuple types with at least one component of a checkable type as a checkable type def uncheckableType(tp: Type): Boolean = { - def tupleComponents(tp: Type) = tp.normalize.typeArgs val checkable = ( (isTupleType(tp) && tupleComponents(tp).exists(tp => !uncheckableType(tp))) || enumerateSubtypes(tp).nonEmpty) |