summaryrefslogtreecommitdiff
path: root/sources
diff options
context:
space:
mode:
authorpaltherr <paltherr@epfl.ch>2003-11-12 14:00:01 +0000
committerpaltherr <paltherr@epfl.ch>2003-11-12 14:00:01 +0000
commit0f6629c829eed9c762149bda6f7497ad3655eec5 (patch)
tree52cfa4d937a6a24896514db1fe8261179cccd76e /sources
parent32d380ac6a3e6a1782d12168f30904b2394ab544 (diff)
downloadscala-0f6629c829eed9c762149bda6f7497ad3655eec5.tar.gz
scala-0f6629c829eed9c762149bda6f7497ad3655eec5.tar.bz2
scala-0f6629c829eed9c762149bda6f7497ad3655eec5.zip
- Fixed computation of new constructor types
Diffstat (limited to 'sources')
-rw-r--r--sources/scalac/transformer/ExplicitOuterClassesPhase.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/sources/scalac/transformer/ExplicitOuterClassesPhase.java b/sources/scalac/transformer/ExplicitOuterClassesPhase.java
index 9cb937b96b..019e51fe90 100644
--- a/sources/scalac/transformer/ExplicitOuterClassesPhase.java
+++ b/sources/scalac/transformer/ExplicitOuterClassesPhase.java
@@ -60,6 +60,7 @@ 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.isPackage()) return type;
+ // if (!symbol.isJava() && symbol.isConstructor()) // !!!
//System.out.println("!!! " + Debug.show(symbol) + ": " + type + " -> " + typeTransformer.apply(type));
type = typeTransformer.apply(type);
if (symbol.isJava()) return type;
@@ -77,7 +78,7 @@ public class ExplicitOuterClassesPhase extends Phase {
}
// Add outer type links
if (hasOuterTypeLinks(symbol)) {
- Symbol[] oldtparams = getOuterTypeParams(symbol);
+ Symbol[] oldtparams = nextTypeParams(getOuterClass(symbol));
Symbol[] tlinks = Symbol.cloneArray(oldtparams);
for (int i = 0; i < tlinks.length; i++) {
tlinks[i] = oldtparams[i].cloneSymbol(symbol);