diff options
author | Olivier Blanvillain <olivier.blanvillain@gmail.com> | 2017-04-10 18:14:01 +0200 |
---|---|---|
committer | Olivier Blanvillain <olivier.blanvillain@gmail.com> | 2017-04-11 08:48:06 +0200 |
commit | 198b5cec531a8e0d6c121cc425e19a54b7818868 (patch) | |
tree | cedbb042b763d7184046fdd425b1ca9fc9591e9f /compiler/src/dotty/tools/dotc/transform/PatternMatcher.scala | |
parent | 5bf9d2b0046b60ae9fcdc218cd190e17023b4fae (diff) | |
download | dotty-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.scala | 2 |
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 = |