summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/compiler/scala/tools/nsc/transform/patmat/Logic.scala3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/transform/patmat/Logic.scala b/src/compiler/scala/tools/nsc/transform/patmat/Logic.scala
index cef22d7d6b..227c45b3a7 100644
--- a/src/compiler/scala/tools/nsc/transform/patmat/Logic.scala
+++ b/src/compiler/scala/tools/nsc/transform/patmat/Logic.scala
@@ -384,9 +384,8 @@ trait Logic extends Debugging {
// ... and what must not?
excluded foreach {
excludedSym =>
- val related = Set(sym, excludedSym)
val exclusive = v.groupedDomains.exists {
- domain => related subsetOf domain.toSet
+ domain => domain.contains(sym) && domain.contains(excludedSym)
}
// TODO: populate `v.exclusiveDomains` with `Set`s from the start, and optimize to: