diff options
author | Martin Odersky <odersky@gmail.com> | 2014-07-10 14:55:20 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2014-07-17 11:02:01 +0200 |
commit | 1bb16c4ec5a5c677d2b606e652733cd7a3867a2b (patch) | |
tree | 0efa93dbe85a1355322c6edc3f685f08e745c7b0 /src/dotty/tools/dotc/core/Types.scala | |
parent | 1ac95a7209439116750592931e43981127950ad4 (diff) | |
download | dotty-1bb16c4ec5a5c677d2b606e652733cd7a3867a2b.tar.gz dotty-1bb16c4ec5a5c677d2b606e652733cd7a3867a2b.tar.bz2 dotty-1bb16c4ec5a5c677d2b606e652733cd7a3867a2b.zip |
Small cleanups and additions.
Diffstat (limited to 'src/dotty/tools/dotc/core/Types.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/Types.scala | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/Types.scala b/src/dotty/tools/dotc/core/Types.scala index dcb1ae491..89bef109b 100644 --- a/src/dotty/tools/dotc/core/Types.scala +++ b/src/dotty/tools/dotc/core/Types.scala @@ -813,11 +813,15 @@ object Types { if (from1.isEmpty) ctx.subst1(this, from.head, to.head, null) else { val from2 = from1.tail - if (from2.isEmpty) ctx.subst2(this, from.head, to.head, from.tail.head, to.tail.head, null) + if (from2.isEmpty) ctx.subst2(this, from.head, to.head, from1.head, to.tail.head, null) else ctx.subst(this, from, to, null) } } +/* Not needed yet: + final def substDealias(from: List[Symbol], to: List[Type])(implicit ctx: Context): Type = + new ctx.SubstDealiasMap(from, to).apply(this) +*/ /** Substitute all types of the form `PolyParam(from, N)` by * `PolyParam(to, N)`. */ |