summaryrefslogtreecommitdiff
path: root/sources/scalac
diff options
context:
space:
mode:
authorschinz <schinz@epfl.ch>2003-02-21 15:36:07 +0000
committerschinz <schinz@epfl.ch>2003-02-21 15:36:07 +0000
commit3efc6463c130b1e7129f9cc3fecf1498bf79ed00 (patch)
treec5dd70b04f6e39faddcc86e071835663f79bd653 /sources/scalac
parent4c58302ea372416da3269c1088be444fc886865c (diff)
downloadscala-3efc6463c130b1e7129f9cc3fecf1498bf79ed00.tar.gz
scala-3efc6463c130b1e7129f9cc3fecf1498bf79ed00.tar.bz2
scala-3efc6463c130b1e7129f9cc3fecf1498bf79ed00.zip
- bug fix: className() now returns a name of th...
- bug fix: className() now returns a name of the same kind as the one it got
Diffstat (limited to 'sources/scalac')
-rw-r--r--sources/scalac/transformer/AddInterfaces.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/sources/scalac/transformer/AddInterfaces.java b/sources/scalac/transformer/AddInterfaces.java
index 2559a15670..f0f5e6781d 100644
--- a/sources/scalac/transformer/AddInterfaces.java
+++ b/sources/scalac/transformer/AddInterfaces.java
@@ -107,8 +107,10 @@ class AddInterfaces extends SubstTransformer {
protected Name className(Name interfaceName) {
assert !hasClassSuffix(interfaceName) : interfaceName;
+ boolean isType = interfaceName.isTypeName();
String interfaceStr = interfaceName.toString();
- return Name.fromString(interfaceStr + CLASS_SUFFIX);
+ Name className = Name.fromString(interfaceStr + CLASS_SUFFIX);
+ return (isType ? className.toTypeName() : className);
}
// Modifiers for which we do not create interfaces.