diff options
author | Martin Odersky <odersky@gmail.com> | 2013-11-15 19:33:18 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2013-11-15 19:33:18 +0100 |
commit | 3d01335c750de022e87914f44e017051abac290f (patch) | |
tree | ee97f48087be9fcf4298139a05ca0093a39ccc06 /src/dotty/tools/dotc/core/SymDenotations.scala | |
parent | 6ca5d414e729a509a00ddc508f2abf3d24da56ca (diff) | |
download | dotty-3d01335c750de022e87914f44e017051abac290f.tar.gz dotty-3d01335c750de022e87914f44e017051abac290f.tar.bz2 dotty-3d01335c750de022e87914f44e017051abac290f.zip |
Converting most uses of NamedType to select.
Select reduces refinetype/typeref pairs and is therefore preferable over raw NamedType.
Still need to do the same for TypeRefs.
Diffstat (limited to 'src/dotty/tools/dotc/core/SymDenotations.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/SymDenotations.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/SymDenotations.scala b/src/dotty/tools/dotc/core/SymDenotations.scala index af2e6a8ca..de4a1d8e3 100644 --- a/src/dotty/tools/dotc/core/SymDenotations.scala +++ b/src/dotty/tools/dotc/core/SymDenotations.scala @@ -651,7 +651,7 @@ object SymDenotations { TermRef.withSym(owner.thisType, symbol.asTerm) def symRef(implicit ctx: Context): NamedType = - NamedType.withSym(owner.thisType, symbol) + if (isType) symTypeRef else symTermRef /** The variance of this type parameter or type member as an Int, with * +1 = Covariant, -1 = Contravariant, 0 = Nonvariant, or not a type parameter |