summaryrefslogtreecommitdiff
path: root/sources/scalac/transformer/UnCurry.java
diff options
context:
space:
mode:
authorburaq <buraq@epfl.ch>2004-03-10 11:40:56 +0000
committerburaq <buraq@epfl.ch>2004-03-10 11:40:56 +0000
commita0846e3ecfad20c544f34d6fe7ecdd954c44449b (patch)
tree12c9b63edd8368ad290405ebc24b91663a6946b8 /sources/scalac/transformer/UnCurry.java
parentb7210674f8a7185042c5090224299597a60cdc42 (diff)
downloadscala-a0846e3ecfad20c544f34d6fe7ecdd954c44449b.tar.gz
scala-a0846e3ecfad20c544f34d6fe7ecdd954c44449b.tar.bz2
scala-a0846e3ecfad20c544f34d6fe7ecdd954c44449b.zip
bugfix and cleanup
Diffstat (limited to 'sources/scalac/transformer/UnCurry.java')
-rw-r--r--sources/scalac/transformer/UnCurry.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/sources/scalac/transformer/UnCurry.java b/sources/scalac/transformer/UnCurry.java
index 581cc47918..f088ca6943 100644
--- a/sources/scalac/transformer/UnCurry.java
+++ b/sources/scalac/transformer/UnCurry.java
@@ -43,8 +43,8 @@ public class UnCurry extends OwnerTransformer
}
public void apply(Unit unit) {
- super.apply(unit);
this.unit = unit;
+ super.apply(unit);
}
/** (ps_1) ... (ps_n) => (ps_1, ..., ps_n)
@@ -110,12 +110,10 @@ public class UnCurry extends OwnerTransformer
* (a_1, ..., a_n) => (Sequence(a_1, ..., a_n))
*/
public Tree transform(Tree tree) {
- //System.out.println("A uncurry: "+tree+" CLASS:"+tree.getClass());//DEBUG
System.out.flush();
//uncurry type and symbol
Type prevtype = tree.type;
if (prevtype != null) tree.type = descr.uncurry(prevtype);
- //System.out.println("B uncurry (after descr.): "+tree);//DEBUG
switch (tree) {
case ClassDef(_, _, AbsTypeDef[] tparams, ValDef[][] vparams, Tree tpe, Template impl):
return copy.ClassDef(