aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/dotty/tools/dotc/transform/PatternMatcher.scala
diff options
context:
space:
mode:
authorOlivier Blanvillain <olivier.blanvillain@gmail.com>2017-04-10 18:14:01 +0200
committerOlivier Blanvillain <olivier.blanvillain@gmail.com>2017-04-11 08:48:06 +0200
commit198b5cec531a8e0d6c121cc425e19a54b7818868 (patch)
treecedbb042b763d7184046fdd425b1ca9fc9591e9f /compiler/src/dotty/tools/dotc/transform/PatternMatcher.scala
parent5bf9d2b0046b60ae9fcdc218cd190e17023b4fae (diff)
downloaddotty-198b5cec531a8e0d6c121cc425e19a54b7818868.tar.gz
dotty-198b5cec531a8e0d6c121cc425e19a54b7818868.tar.bz2
dotty-198b5cec531a8e0d6c121cc425e19a54b7818868.zip
Move isProductSubType to Applications & rename to canProductMatch
Diffstat (limited to 'compiler/src/dotty/tools/dotc/transform/PatternMatcher.scala')
-rw-r--r--compiler/src/dotty/tools/dotc/transform/PatternMatcher.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/src/dotty/tools/dotc/transform/PatternMatcher.scala b/compiler/src/dotty/tools/dotc/transform/PatternMatcher.scala
index 519767389..781bc1bec 100644
--- a/compiler/src/dotty/tools/dotc/transform/PatternMatcher.scala
+++ b/compiler/src/dotty/tools/dotc/transform/PatternMatcher.scala
@@ -1408,7 +1408,7 @@ class PatternMatcher extends MiniPhaseTransform with DenotTransformer {
protected def seqTree(binder: Symbol) = tupleSel(binder)(firstIndexingBinder + 1)
protected def tupleSel(binder: Symbol)(i: Int): Tree = {
val accessors =
- if (defn.isProductSubType(binder.info))
+ if (Applications.canProductMatch(binder.info))
productSelectors(binder.info)
else binder.caseAccessors
val res =