From b1b76515a66d94e9552f3ccde02cb4d1bacbc0ec Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Tue, 9 Dec 2014 16:26:18 +0100 Subject: Moved derivedTypeAlias method to TypeAlias --- src/dotty/tools/dotc/core/TypeOps.scala | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (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 8bda49c94..bf5ba4e55 100644 --- a/src/dotty/tools/dotc/core/TypeOps.scala +++ b/src/dotty/tools/dotc/core/TypeOps.scala @@ -41,8 +41,8 @@ trait TypeOps { this: Context => asSeenFrom(tp.parent, pre, cls, theMap), tp.refinedName, asSeenFrom(tp.refinedInfo, pre, cls, theMap)) - case tp: TypeBounds if tp.lo eq tp.hi => - tp.derivedTypeAlias(asSeenFrom(tp.lo, pre, cls, theMap)) + case tp: TypeAlias => + tp.derivedTypeAlias(asSeenFrom(tp.alias, pre, cls, theMap)) case _ => (if (theMap != null) theMap else new AsSeenFromMap(pre, cls)) .mapOver(tp) @@ -71,8 +71,8 @@ trait TypeOps { this: Context => tp case tp: RefinedType => tp.derivedRefinedType(simplify(tp.parent, theMap), tp.refinedName, simplify(tp.refinedInfo, theMap)) - case tp: TypeBounds if tp.lo eq tp.hi => - tp.derivedTypeAlias(simplify(tp.lo, theMap)) + case tp: TypeAlias => + tp.derivedTypeAlias(simplify(tp.alias, theMap)) case AndType(l, r) => simplify(l, theMap) & simplify(r, theMap) case OrType(l, r) => -- cgit v1.2.3