From 8d8fd269a5e798d4951041c2851ee3b7bd33185d Mon Sep 17 00:00:00 2001 From: Guillaume Martres Date: Wed, 23 Dec 2015 23:28:59 +0100 Subject: Fix #1009: Do not forget to skolemize some types --- src/dotty/tools/dotc/core/TypeOps.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dotty/tools/dotc/core/TypeOps.scala') diff --git a/src/dotty/tools/dotc/core/TypeOps.scala b/src/dotty/tools/dotc/core/TypeOps.scala index 9232bd185..04cd2249d 100644 --- a/src/dotty/tools/dotc/core/TypeOps.scala +++ b/src/dotty/tools/dotc/core/TypeOps.scala @@ -102,7 +102,7 @@ trait TypeOps { this: Context => // TODO: Make standalone object. asSeenFrom(tp.parent, pre, cls, theMap), tp.refinedName, asSeenFrom(tp.refinedInfo, pre, cls, theMap)) - case tp: TypeAlias if theMap == null => // if theMap exists, need to do the variance calculation + case tp: TypeAlias if tp.variance == 1 => // if variance != 1, need to do the variance calculation tp.derivedTypeAlias(asSeenFrom(tp.alias, pre, cls, theMap)) case _ => (if (theMap != null) theMap else new AsSeenFromMap(pre, cls)) -- cgit v1.2.3