From 27a508c50482f4053591ed740f09ecced5bf749b Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Mon, 25 Mar 2013 12:18:34 +0100 Subject: More fixes for classfile reading. In particular: Survive malformed type errors. Make trees cloneable. and others more. --- src/dotty/tools/dotc/core/Denotations.scala | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/dotty/tools/dotc/core/Denotations.scala') diff --git a/src/dotty/tools/dotc/core/Denotations.scala b/src/dotty/tools/dotc/core/Denotations.scala index f8837fafe..08f4c9c57 100644 --- a/src/dotty/tools/dotc/core/Denotations.scala +++ b/src/dotty/tools/dotc/core/Denotations.scala @@ -306,6 +306,7 @@ object Denotations { denot1.hasAltWith(p) || denot2.hasAltWith(p) def derivedMultiDenotation(d1: Denotation, d2: Denotation) = if ((d1 eq denot1) && (d2 eq denot2)) this else MultiDenotation(d1, d2) + override def toString = alternatives.mkString(" ") } /** A non-overloaded denotation */ @@ -458,6 +459,10 @@ object Denotations { final def asSymDenotation = asInstanceOf[SymDenotation] + override def toString = + if (symbol == NoSymbol) symbol.toString + else s"" + // ------ PreDenotation ops ---------------------------------------------- final def first = this -- cgit v1.2.3