aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/SymDenotations.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2014-08-24 17:49:48 +0200
committerMartin Odersky <odersky@gmail.com>2014-08-24 17:50:33 +0200
commit3b7cba4666be03991083fe89780120eae9843c52 (patch)
treebe7b8b6320fff2c14d78d81e8ed70a7d89de16e0 /src/dotty/tools/dotc/core/SymDenotations.scala
parent1f2619bdc4c7b80c3f63fecbe27e47d5f665931d (diff)
downloaddotty-3b7cba4666be03991083fe89780120eae9843c52.tar.gz
dotty-3b7cba4666be03991083fe89780120eae9843c52.tar.bz2
dotty-3b7cba4666be03991083fe89780120eae9843c52.zip
Make type creators work for erased types.
- Some types are different when erased (e.g. prefixes are NoPrefix) - Some types are forbidden when erased. Put in assertions to check that fact. Also, some renaming and doc comments to make creation of TermRefs and TypeRefs clearer.
Diffstat (limited to 'src/dotty/tools/dotc/core/SymDenotations.scala')
-rw-r--r--src/dotty/tools/dotc/core/SymDenotations.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/core/SymDenotations.scala b/src/dotty/tools/dotc/core/SymDenotations.scala
index 310dde912..e60633bb6 100644
--- a/src/dotty/tools/dotc/core/SymDenotations.scala
+++ b/src/dotty/tools/dotc/core/SymDenotations.scala
@@ -830,10 +830,10 @@ object SymDenotations {
TermRef(owner.thisType, name.asTermName, this)
override def valRef(implicit ctx: Context): TermRef =
- TermRef.withSig(owner.thisType, name.asTermName, Signature.NotAMethod, this)
+ TermRef.withSigAndDenot(owner.thisType, name.asTermName, Signature.NotAMethod, this)
override def termRefWithSig(implicit ctx: Context): TermRef =
- TermRef.withSig(owner.thisType, name.asTermName, signature, this)
+ TermRef.withSigAndDenot(owner.thisType, name.asTermName, signature, this)
def nonMemberTermRef(implicit ctx: Context): TermRef =
TermRef.withNonMemberSym(owner.thisType, name.asTermName, symbol.asTerm)