aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/printing
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-07-08 15:20:06 +0200
committerMartin Odersky <odersky@gmail.com>2016-07-11 13:35:08 +0200
commit5e90215a01d74ef9c2b154727dea87ef2dcb3a1b (patch)
treeb55ce224d5edd204072547d9dfd0c6864cf5f6cf /src/dotty/tools/dotc/printing
parent223705d88fdeee1ef337f8c1c8b3144a643a6268 (diff)
downloaddotty-5e90215a01d74ef9c2b154727dea87ef2dcb3a1b.tar.gz
dotty-5e90215a01d74ef9c2b154727dea87ef2dcb3a1b.tar.bz2
dotty-5e90215a01d74ef9c2b154727dea87ef2dcb3a1b.zip
Drop compareAliasedRefined
If there is a new named type param scheme it will almost certainly not need something like compareAliasedRefined. Also: harden printer to compute less and thereby avoid a possible NPE.
Diffstat (limited to 'src/dotty/tools/dotc/printing')
-rw-r--r--src/dotty/tools/dotc/printing/PlainPrinter.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/printing/PlainPrinter.scala b/src/dotty/tools/dotc/printing/PlainPrinter.scala
index 656650d91..acf4514ea 100644
--- a/src/dotty/tools/dotc/printing/PlainPrinter.scala
+++ b/src/dotty/tools/dotc/printing/PlainPrinter.scala
@@ -228,7 +228,7 @@ class PlainPrinter(_ctx: Context) extends Printer {
/** If -uniqid is set, the hashcode of the polytype, after a # */
protected def polyHash(pt: GenericType): Text =
- "#" + pt.hashCode provided ctx.settings.uniqid.value
+ if (ctx.settings.uniqid.value) "#" + pt.hashCode else ""
/** If -uniqid is set, the unique id of symbol, after a # */
protected def idString(sym: Symbol): String =