diff options
author | Martin Odersky <odersky@gmail.com> | 2013-12-14 17:32:16 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2013-12-14 17:32:16 +0100 |
commit | 01db9a68e5e68f08c8236c23c905009789d51587 (patch) | |
tree | 3e45103b0d36505d6f86f3024e56780e840c156b /src/dotty/tools/dotc/printing/RefinedPrinter.scala | |
parent | d65587ae74cfe2dc7601f57e163b7e22bf89582a (diff) | |
download | dotty-01db9a68e5e68f08c8236c23c905009789d51587.tar.gz dotty-01db9a68e5e68f08c8236c23c905009789d51587.tar.bz2 dotty-01db9a68e5e68f08c8236c23c905009789d51587.zip |
Fixed several deep problems in handling of types and symbols.
1. We forgot to mark declaration symbols Deferred.
2. Types with NoPrefix and the same name got identified. Fixed by adding a new category WithNoPrefix to named types, and changing the way named types get generated.
3. Self types lacked parameters. (Question: Do we need to also track type members?)
4. Printers caused cyclic reference errors. Now some print operations are more careful with forcing.
5. Namedparts accumulator has to be more careful with ThisTypes. Because self types now contain parameters, which might lead back to this, we only add the class name (or the source module, if it's a module class).
6. toBounds in TypeApplications needs to use Co/Contra aliases for expanded name parameters, not just local ones.
Diffstat (limited to 'src/dotty/tools/dotc/printing/RefinedPrinter.scala')
-rw-r--r-- | src/dotty/tools/dotc/printing/RefinedPrinter.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/printing/RefinedPrinter.scala b/src/dotty/tools/dotc/printing/RefinedPrinter.scala index 050b27587..9fc8cb513 100644 --- a/src/dotty/tools/dotc/printing/RefinedPrinter.scala +++ b/src/dotty/tools/dotc/printing/RefinedPrinter.scala @@ -431,7 +431,7 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) { } override def toTextFlags(sym: Symbol) = { - var flags = sym.flags + var flags = sym.flagsUNSAFE if (flags is TypeParam) flags = flags &~ Protected Text(flags.flagStrings.filterNot(_.startsWith("<")) map stringToText, " ") } |