summaryrefslogtreecommitdiff
path: root/sources/scalac/typechecker
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2004-07-02 12:18:44 +0000
committerMartin Odersky <odersky@gmail.com>2004-07-02 12:18:44 +0000
commit6eab12dda6edcc21726e771fdf32cdf3275ec9b6 (patch)
tree337ab8943510d8615042c1c601496cdc9b224967 /sources/scalac/typechecker
parent45541e41cb9a6d456902240898e3efb9661d4372 (diff)
downloadscala-6eab12dda6edcc21726e771fdf32cdf3275ec9b6.tar.gz
scala-6eab12dda6edcc21726e771fdf32cdf3275ec9b6.tar.bz2
scala-6eab12dda6edcc21726e771fdf32cdf3275ec9b6.zip
*** empty log message ***
Diffstat (limited to 'sources/scalac/typechecker')
-rw-r--r--sources/scalac/typechecker/RefCheck.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/sources/scalac/typechecker/RefCheck.java b/sources/scalac/typechecker/RefCheck.java
index 797d38fc08..dc383e5067 100644
--- a/sources/scalac/typechecker/RefCheck.java
+++ b/sources/scalac/typechecker/RefCheck.java
@@ -849,10 +849,12 @@ public class RefCheck extends Transformer implements Modifiers, Kinds {
Tree[] body1;
if (sym.isCaseClass()) {
body1 = addCaseMethods(templ.body, sym);
- } else {
+ } else if ((sym.flags & ABSTRACT) == 0) {
body1 = new Tree[templ.body.length + 1];
System.arraycopy(templ.body, 0, body1, 0, templ.body.length);
body1[templ.body.length] = tagMethod(sym);
+ } else {
+ body1 = templ.body;
}
return copy.Template(templ, templ.parents, body1);
}