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/core | |
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/core')
-rw-r--r-- | compiler/src/dotty/tools/dotc/core/Definitions.scala | 3 |
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) |