diff options
author | Martin Odersky <odersky@gmail.com> | 2015-11-08 10:33:58 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2015-11-09 15:45:40 +0100 |
commit | 4f01f62ac216fa9034d343828aa6f4be626d9b36 (patch) | |
tree | 9a0dbba0554183199aa3f1389e7e166851073bb8 /src/dotty/tools/dotc/core/Types.scala | |
parent | 2d7a05fa46016ea54e10a80735e04b33fd0938d1 (diff) | |
download | dotty-4f01f62ac216fa9034d343828aa6f4be626d9b36.tar.gz dotty-4f01f62ac216fa9034d343828aa6f4be626d9b36.tar.bz2 dotty-4f01f62ac216fa9034d343828aa6f4be626d9b36.zip |
Shorten ..Class.typeRef to ..Type
Since we now have two forms of (almost) everything in Definitions,
might as well profit from it.
Diffstat (limited to 'src/dotty/tools/dotc/core/Types.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/Types.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/Types.scala b/src/dotty/tools/dotc/core/Types.scala index 3bc76a20d..4cae047a9 100644 --- a/src/dotty/tools/dotc/core/Types.scala +++ b/src/dotty/tools/dotc/core/Types.scala @@ -964,7 +964,7 @@ object Types { /** The first parent of this type, AnyRef if list of parents is empty */ def firstParent(implicit ctx: Context): TypeRef = parents match { case p :: _ => p - case _ => defn.AnyClass.typeRef + case _ => defn.AnyType } /** the self type of the underlying classtype */ |