summaryrefslogtreecommitdiff
path: root/sources
diff options
context:
space:
mode:
authorpaltherr <paltherr@epfl.ch>2003-10-15 09:18:43 +0000
committerpaltherr <paltherr@epfl.ch>2003-10-15 09:18:43 +0000
commit96eb45c701a72ef682e297d45a210ca1138ebfa1 (patch)
tree80c6ae44c7de70ea1099256b09d5647ace46b83b /sources
parent2755e0794f951b34ecb13450cd55dc8fbac8598a (diff)
downloadscala-96eb45c701a72ef682e297d45a210ca1138ebfa1.tar.gz
scala-96eb45c701a72ef682e297d45a210ca1138ebfa1.tar.bz2
scala-96eb45c701a72ef682e297d45a210ca1138ebfa1.zip
- Improved debugging code
Diffstat (limited to 'sources')
-rw-r--r--sources/scalac/transformer/Erasure.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/sources/scalac/transformer/Erasure.java b/sources/scalac/transformer/Erasure.java
index 503135d14b..951f4375bd 100644
--- a/sources/scalac/transformer/Erasure.java
+++ b/sources/scalac/transformer/Erasure.java
@@ -417,7 +417,7 @@ public class Erasure extends Transformer implements Modifiers {
case New(Template templ):
if (tree.type.symbol() == definitions.UNIT_CLASS)
// !!! return Tree.Literal(UNIT, null).setType(owntype);
- throw Debug.abort("found unit literal");
+ throw Debug.abort("found unit literal in " + currentClass);
if (tree.type.symbol() == definitions.ARRAY_CLASS) {
switch (templ.parents[0]) {
case Apply(_, Tree[] args):
@@ -491,6 +491,11 @@ public class Erasure extends Transformer implements Modifiers {
if (global.debug) global.log("fn: " + fun1.symbol() + ":" + fun1.type);//debug
switch (fun1.type) {
case MethodType(Symbol[] params, Type restpe):
+ assert params.length == args.length:
+ "\nclass : " + Debug.show(currentClass) +
+ "\ntree : " + tree +
+ "\nfun1 : " + fun1 +
+ "\nfun1.type: " + fun1.type;
Tree[] args1 = args;
for (int i = 0; i < args.length; i++) {
Tree arg = args[i];