aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-01-04 15:32:06 +0100
committerMartin Odersky <odersky@gmail.com>2016-02-19 13:59:59 +0100
commitd872d9ca54e9d56f563dc2e0bb002b38380af391 (patch)
treec8c6c47113318bd2aeac002f68d8ae77d4b4d164
parent46b7fc713da460023073c9a9d4d25fc2c7acf5e2 (diff)
downloaddotty-d872d9ca54e9d56f563dc2e0bb002b38380af391.tar.gz
dotty-d872d9ca54e9d56f563dc2e0bb002b38380af391.tar.bz2
dotty-d872d9ca54e9d56f563dc2e0bb002b38380af391.zip
Remove unnecessary logic in toBounds
-rw-r--r--src/dotty/tools/dotc/core/TypeApplications.scala3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dotty/tools/dotc/core/TypeApplications.scala b/src/dotty/tools/dotc/core/TypeApplications.scala
index e09328205..df842a1ef 100644
--- a/src/dotty/tools/dotc/core/TypeApplications.scala
+++ b/src/dotty/tools/dotc/core/TypeApplications.scala
@@ -548,8 +548,11 @@ class TypeApplications(val self: Type) extends AnyVal {
self
case _ =>
val v = tparam.variance
+ /* Not neeeded.
if (v > 0 && !(tparam is Local) && !(tparam is ExpandedTypeParam)) TypeBounds.upper(self)
else if (v < 0 && !(tparam is Local) && !(tparam is ExpandedTypeParam)) TypeBounds.lower(self)
+ else
+ */
else TypeAlias(self, v)
}