summaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2007-06-08 17:45:31 +0000
committerMartin Odersky <odersky@gmail.com>2007-06-08 17:45:31 +0000
commit7d89506e35630979834f2af1dfb9868559f8d633 (patch)
treefb549c812b726687804d640656a3c0bfef6ed9e8 /src/compiler
parent11c26aa2289baff870a063f7e2359f424f3c881d (diff)
downloadscala-7d89506e35630979834f2af1dfb9868559f8d633.tar.gz
scala-7d89506e35630979834f2af1dfb9868559f8d633.tar.bz2
scala-7d89506e35630979834f2af1dfb9868559f8d633.zip
changed output of constructors under -uniqid
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/scala/tools/nsc/symtab/Symbols.scala5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/symtab/Symbols.scala b/src/compiler/scala/tools/nsc/symtab/Symbols.scala
index 1b6dabd6f6..450b162d01 100644
--- a/src/compiler/scala/tools/nsc/symtab/Symbols.scala
+++ b/src/compiler/scala/tools/nsc/symtab/Symbols.scala
@@ -986,13 +986,14 @@ trait Symbols {
/** If settings.uniqid is set, the symbol's id, else "" */
final def idString: String =
- if (settings.uniqid.value) "#" + id else ""
+ if (settings.uniqid.value) "#"+id else ""
/** String representation, including symbol's kind
* e.g., "class Foo", "method Bar".
*/
override def toString(): String =
- compose(List(kindString, if (isClassConstructor) owner.nameString else nameString))
+ compose(List(kindString,
+ if (isClassConstructor) owner.simpleName.decode+idString else nameString))
/** String representation of location. */
final def locationString: String =