diff options
author | Martin Odersky <odersky@gmail.com> | 2014-08-24 17:49:48 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2014-08-24 17:50:33 +0200 |
commit | 3b7cba4666be03991083fe89780120eae9843c52 (patch) | |
tree | be7b8b6320fff2c14d78d81e8ed70a7d89de16e0 /src/dotty/tools/dotc/typer/Implicits.scala | |
parent | 1f2619bdc4c7b80c3f63fecbe27e47d5f665931d (diff) | |
download | dotty-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/typer/Implicits.scala')
-rw-r--r-- | src/dotty/tools/dotc/typer/Implicits.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/typer/Implicits.scala b/src/dotty/tools/dotc/typer/Implicits.scala index da1492d61..571b37eb0 100644 --- a/src/dotty/tools/dotc/typer/Implicits.scala +++ b/src/dotty/tools/dotc/typer/Implicits.scala @@ -310,7 +310,7 @@ trait ImplicitRunInfo { self: RunInfo => def addRef(companion: TermRef): Unit = { val compSym = companion.symbol if (compSym is Package) - addRef(TermRef(companion, nme.PACKAGE)) + addRef(TermRef.withSig(companion, nme.PACKAGE, Signature.NotAMethod)) else if (compSym.exists) comps += companion.asSeenFrom(pre, compSym.owner).asInstanceOf[TermRef] } |