summaryrefslogtreecommitdiff
path: root/sources
diff options
context:
space:
mode:
authorpaltherr <paltherr@epfl.ch>2003-09-08 16:05:52 +0000
committerpaltherr <paltherr@epfl.ch>2003-09-08 16:05:52 +0000
commite60924767e30c9447fc169e4658cee7bb76e63ef (patch)
tree6f3a68b53636fe5ac956f3f4bc6e6ee3fb03c8b2 /sources
parent0fd76c61fd1414b231589a8336b186e125dfd0ea (diff)
downloadscala-e60924767e30c9447fc169e4658cee7bb76e63ef.tar.gz
scala-e60924767e30c9447fc169e4658cee7bb76e63ef.tar.bz2
scala-e60924767e30c9447fc169e4658cee7bb76e63ef.zip
- Simplified (no more OverloadedType and NoType)
Diffstat (limited to 'sources')
-rw-r--r--sources/scalac/transformer/ExplicitOuterClassesPhase.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/sources/scalac/transformer/ExplicitOuterClassesPhase.java b/sources/scalac/transformer/ExplicitOuterClassesPhase.java
index 590502f35c..b0d48eb701 100644
--- a/sources/scalac/transformer/ExplicitOuterClassesPhase.java
+++ b/sources/scalac/transformer/ExplicitOuterClassesPhase.java
@@ -56,11 +56,11 @@ public class ExplicitOuterClassesPhase extends Phase {
/** Applies this phase to the given type for the given symbol. */
public Type transformInfo(Symbol symbol, Type type) {
- if (symbol.isJava() || symbol == Symbol.NONE) return type;
+ if (symbol.isJava()) return type;
//System.out.println("!!! debug1 = " + Debug.show(symbol));
//if (symbol.name.toString().equals("x")) new Error("!!!").printStackTrace();
type = typeTransformer.apply(type);
- if (symbol.isConstructor() && !symbol.isOverloaded()) {
+ if (symbol.isConstructor()) {
Symbol[] tparams = type.typeParams();
Symbol[] vparams = type.valueParams();
Type result = type.resultType();
@@ -86,9 +86,7 @@ public class ExplicitOuterClassesPhase extends Phase {
type = Type.MethodType(vparams, result);
if (tparams.length != 0) type = Type.PolyType(tparams, type);
} else {
- Symbol owner = symbol.isConstructor()
- ? symbol.constructorClass()
- : symbol.owner().isConstructor()
+ Symbol owner = symbol.owner().isConstructor()
? symbol.owner()
: symbol.enclClass();
//System.out.println("!!! debug2 = " + Debug.show(symbol) + " - " + Debug.show(owner) + " --- " + (owner == Symbol.NONE) + " -- #" + owner.name + "#");