diff options
-rw-r--r-- | src/compiler/scala/tools/nsc/symtab/Symbols.scala | 5 |
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 = |