diff options
author | Martin Odersky <odersky@gmail.com> | 2013-11-23 17:41:22 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2013-11-23 17:41:22 +0100 |
commit | 92ed954f361ed08ef4821afd530357379956904a (patch) | |
tree | 0e4df5d262d79225a2cae19620d398c75d1a4c0e /src/dotty/tools/dotc/core/Types.scala | |
parent | 9e1bf7743355de040a23fbcfe9b1efb9b1db1789 (diff) | |
download | dotty-92ed954f361ed08ef4821afd530357379956904a.tar.gz dotty-92ed954f361ed08ef4821afd530357379956904a.tar.bz2 dotty-92ed954f361ed08ef4821afd530357379956904a.zip |
Cleanup of named type creation from SymDenotations.
New operations:
- typeRef
- termRef
- valRef (like termRef, but with NotAMethod signature)
- termRefWithSig (like termRef, but with denotation's signature)
Diffstat (limited to 'src/dotty/tools/dotc/core/Types.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/Types.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/core/Types.scala b/src/dotty/tools/dotc/core/Types.scala index 5617fa6cc..3c0dbd0e9 100644 --- a/src/dotty/tools/dotc/core/Types.scala +++ b/src/dotty/tools/dotc/core/Types.scala @@ -373,7 +373,7 @@ object Types { // member in Super instead of Sub. // As an example of this in the wild, see // loadClassWithPrivateInnerAndSubSelf in ShowClassTests - tp.cls.symTypeRef.findMember(name, pre, excluded) orElse d + tp.cls.typeRef.findMember(name, pre, excluded) orElse d case tp: TypeRef => tp.denot.findMember(name, pre, excluded) case tp: TypeProxy => @@ -691,7 +691,7 @@ object Types { case _ => parents match { case p :: _ => p - case _ => defn.AnyClass.symTypeRef + case _ => defn.AnyClass.typeRef } } |