diff options
author | Martin Odersky <odersky@gmail.com> | 2003-08-21 10:30:27 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2003-08-21 10:30:27 +0000 |
commit | b227b272110f0654064632642c2ca1031e7c68c6 (patch) | |
tree | 747970915b10fc1eb9b80481c44052a3808fd08f /sources/scalac/typechecker/Analyzer.java | |
parent | 7b1200a4f4ecd1014055f65f384bd814754256b0 (diff) | |
download | scala-b227b272110f0654064632642c2ca1031e7c68c6.tar.gz scala-b227b272110f0654064632642c2ca1031e7c68c6.tar.bz2 scala-b227b272110f0654064632642c2ca1031e7c68c6.zip |
*** empty log message ***
Diffstat (limited to 'sources/scalac/typechecker/Analyzer.java')
-rw-r--r-- | sources/scalac/typechecker/Analyzer.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/scalac/typechecker/Analyzer.java b/sources/scalac/typechecker/Analyzer.java index da68b474b7..3718e377bb 100644 --- a/sources/scalac/typechecker/Analyzer.java +++ b/sources/scalac/typechecker/Analyzer.java @@ -276,7 +276,7 @@ public class Analyzer extends Transformer implements Modifiers, Kinds { error(sym.pos, "`override' modifier not allowed for classes"); } if ((sym.flags & DEF) != 0 && sym.owner().isPrimaryConstructor() && - (sym.owner().primaryConstructorClass().flags & CASE) != 0) { + (sym.owner().constructorClass().flags & CASE) != 0) { error(sym.pos, "`def' modifier not allowed for case class parameters"); } /*!!! @@ -1540,7 +1540,7 @@ public class Analyzer extends Transformer implements Modifiers, Kinds { constrs[i] = transform(constrs[i], CONSTRmode | SUPERmode, Type.AnyType); Symbol f = TreeInfo.methSymbol(constrs[i]); if (f != null) { - Symbol c = f.primaryConstructorClass(); + Symbol c = f.constructorClass(); if (c.kind == CLASS) { c.initialize();//to detect cycles if (i > 0 && (c.flags & JAVA) == 0 && c.isExternal()) { |