aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/Denotations.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2013-03-25 12:18:34 +0100
committerMartin Odersky <odersky@gmail.com>2013-03-25 12:18:34 +0100
commit27a508c50482f4053591ed740f09ecced5bf749b (patch)
tree936cf263cc1236bb308cc786c0f7ee0cdc0f2fa8 /src/dotty/tools/dotc/core/Denotations.scala
parent4a17f0d1e17adecbdc4755bf719feff18d115318 (diff)
downloaddotty-27a508c50482f4053591ed740f09ecced5bf749b.tar.gz
dotty-27a508c50482f4053591ed740f09ecced5bf749b.tar.bz2
dotty-27a508c50482f4053591ed740f09ecced5bf749b.zip
More fixes for classfile reading.
In particular: Survive malformed type errors. Make trees cloneable. and others more.
Diffstat (limited to 'src/dotty/tools/dotc/core/Denotations.scala')
-rw-r--r--src/dotty/tools/dotc/core/Denotations.scala5
1 files changed, 5 insertions, 0 deletions
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(" <and> ")
}
/** 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"<SingleDenotation of type $info>"
+
// ------ PreDenotation ops ----------------------------------------------
final def first = this