aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/dotty/tools/dotc/core
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/core
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/core')
-rw-r--r--compiler/src/dotty/tools/dotc/core/Definitions.scala3
1 files changed, 0 insertions, 3 deletions
diff --git a/compiler/src/dotty/tools/dotc/core/Definitions.scala b/compiler/src/dotty/tools/dotc/core/Definitions.scala
index bc55ce638..8ff6a2ea9 100644
--- a/compiler/src/dotty/tools/dotc/core/Definitions.scala
+++ b/compiler/src/dotty/tools/dotc/core/Definitions.scala
@@ -847,9 +847,6 @@ class Definitions {
TupleType(elems.size).appliedTo(elems)
}
- def isProductSubType(tp: Type)(implicit ctx: Context) =
- Applications.extractorMemberType(tp, nme._1).exists
-
/** Is `tp` (an alias) of either a scala.FunctionN or a scala.ImplicitFunctionN? */
def isFunctionType(tp: Type)(implicit ctx: Context) = {
val arity = functionArity(tp)