diff options
author | paltherr <paltherr@epfl.ch> | 2003-11-28 11:44:32 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2003-11-28 11:44:32 +0000 |
commit | 8bb7f3d835b07002fa9ca455f858f5c95a8ecc13 (patch) | |
tree | e6ecbe2fa0f42ac99cf2c315087fb781df526d89 /sources | |
parent | 377337eb8c002591639c7a51e81624d4214f9e09 (diff) | |
download | scala-8bb7f3d835b07002fa9ca455f858f5c95a8ecc13.tar.gz scala-8bb7f3d835b07002fa9ca455f858f5c95a8ecc13.tar.bz2 scala-8bb7f3d835b07002fa9ca455f858f5c95a8ecc13.zip |
- Added special case for initializers in simple...
- Added special case for initializers in simpleName()
Diffstat (limited to 'sources')
-rw-r--r-- | sources/scalac/symtab/Symbol.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sources/scalac/symtab/Symbol.java b/sources/scalac/symtab/Symbol.java index 6c0243853c..2336a3d90c 100644 --- a/sources/scalac/symtab/Symbol.java +++ b/sources/scalac/symtab/Symbol.java @@ -568,8 +568,9 @@ public abstract class Symbol implements Modifiers, Kinds { /** Get the simple name of this Symbol (this is always a term name) */ public Name simpleName() { - return isConstructor() ? constructorClass().name.toTermName() - : name.toTermName(); + if (isConstructor()) return constructorClass().name.toTermName(); + if (isInitializer()) return owner().name.toTermName(); + return name; } /** Get the fully qualified name of this Symbol */ |