diff options
author | Martin Odersky <odersky@gmail.com> | 2003-08-14 18:36:02 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2003-08-14 18:36:02 +0000 |
commit | df43fa3f64f2bff8321246684e731243b0fe93ea (patch) | |
tree | ab5d83cce3ad2c22f213cb60dac4e47f3d842d8f /sources/scalac/transformer/AddInterfacesPhase.java | |
parent | f92d38c415f89214dfea5e86f79e091b2c573551 (diff) | |
download | scala-df43fa3f64f2bff8321246684e731243b0fe93ea.tar.gz scala-df43fa3f64f2bff8321246684e731243b0fe93ea.tar.bz2 scala-df43fa3f64f2bff8321246684e731243b0fe93ea.zip |
*** empty log message ***
Diffstat (limited to 'sources/scalac/transformer/AddInterfacesPhase.java')
-rw-r--r-- | sources/scalac/transformer/AddInterfacesPhase.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/scalac/transformer/AddInterfacesPhase.java b/sources/scalac/transformer/AddInterfacesPhase.java index 77b9fdb5b2..fbbed6a98d 100644 --- a/sources/scalac/transformer/AddInterfacesPhase.java +++ b/sources/scalac/transformer/AddInterfacesPhase.java @@ -42,7 +42,7 @@ public class AddInterfacesPhase extends PhaseDescriptor { public Type transformInfo(Symbol sym, Type tp) { if (sym.isPrimaryConstructor()) { Symbol clazz = sym.primaryConstructorClass(); - if (clazz.isPackage() || !needInterface(clazz)) return tp; + if (!(clazz.isClass() && needInterface(clazz))) return tp; // The symbol is a constructor of a class which needs // an interface. All its value arguments have to be // removed. |