diff options
author | Martin Odersky <odersky@gmail.com> | 2014-12-09 16:26:18 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2014-12-10 18:54:02 +0100 |
commit | b1b76515a66d94e9552f3ccde02cb4d1bacbc0ec (patch) | |
tree | cf25808e742e884631174e989133413214d6248d /src/dotty/tools/dotc/core/TypeOps.scala | |
parent | 176d677258051fd1eef1d1bf26575919cab03530 (diff) | |
download | dotty-b1b76515a66d94e9552f3ccde02cb4d1bacbc0ec.tar.gz dotty-b1b76515a66d94e9552f3ccde02cb4d1bacbc0ec.tar.bz2 dotty-b1b76515a66d94e9552f3ccde02cb4d1bacbc0ec.zip |
Moved derivedTypeAlias method to TypeAlias
Diffstat (limited to 'src/dotty/tools/dotc/core/TypeOps.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/TypeOps.scala | 8 |
1 files changed, 4 insertions, 4 deletions
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) => |