diff options
author | Martin Odersky <odersky@gmail.com> | 2013-11-16 17:18:58 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2013-11-16 17:18:58 +0100 |
commit | f046e7a0c26500850a51e2f60122631b2c807f65 (patch) | |
tree | 7a037d1437a6657ba116297c021e22068c64b5d2 /src | |
parent | 3d01335c750de022e87914f44e017051abac290f (diff) | |
download | dotty-f046e7a0c26500850a51e2f60122631b2c807f65.tar.gz dotty-f046e7a0c26500850a51e2f60122631b2c807f65.tar.bz2 dotty-f046e7a0c26500850a51e2f60122631b2c807f65.zip |
Changing some TermRef's to selects
Diffstat (limited to 'src')
-rw-r--r-- | src/dotty/tools/dotc/core/Types.scala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dotty/tools/dotc/core/Types.scala b/src/dotty/tools/dotc/core/Types.scala index d6dc81d4e..854c7e2f6 100644 --- a/src/dotty/tools/dotc/core/Types.scala +++ b/src/dotty/tools/dotc/core/Types.scala @@ -2109,14 +2109,14 @@ object Types { if ((prefix eq cls.owner.thisType) || !cls.owner.isClass) tp else tp.substThis(cls.owner.asClass, prefix) - private var tyconCache: TypeRef = null + private var tyconCache: Type = null - def typeConstructor(implicit ctx: Context): TypeRef = { + def typeConstructor(implicit ctx: Context): Type = { def clsDenot = if (prefix eq cls.owner.thisType) cls.denot else cls.denot.copySymDenotation(info = this) if (tyconCache == null) tyconCache = - if ((cls is PackageClass) || cls.owner.isTerm) TypeRef.withSym(prefix, cls) - else TypeRef(prefix, cls.name).withDenot(clsDenot) + if ((cls is PackageClass) || cls.owner.isTerm) prefix select cls + else prefix select (cls.name, clsDenot) tyconCache } |