summaryrefslogtreecommitdiff
path: root/sources
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2003-07-04 14:20:55 +0000
committerMartin Odersky <odersky@gmail.com>2003-07-04 14:20:55 +0000
commite2a375174c6e00c47e865863da77ef854844e9b7 (patch)
treecb2e269c753aa15fff71f34ec7d93f4af54c5521 /sources
parent00abd39f96ee40da727ccc735d25ca3d96ce01ce (diff)
downloadscala-e2a375174c6e00c47e865863da77ef854844e9b7.tar.gz
scala-e2a375174c6e00c47e865863da77ef854844e9b7.tar.bz2
scala-e2a375174c6e00c47e865863da77ef854844e9b7.zip
*** empty log message ***
Diffstat (limited to 'sources')
-rw-r--r--sources/scalac/symtab/Symbol.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/sources/scalac/symtab/Symbol.java b/sources/scalac/symtab/Symbol.java
index 5e4e7e2801..90adf230c5 100644
--- a/sources/scalac/symtab/Symbol.java
+++ b/sources/scalac/symtab/Symbol.java
@@ -322,7 +322,8 @@ public abstract class Symbol implements Modifiers, Kinds {
/** Is this symbol locally defined? I.e. not a member of a class or module */
public final boolean isLocal() {
- return owner.kind == VAL && !owner.isPrimaryConstructor();
+ return owner.kind == VAL &&
+ !((flags & PARAM) != 0 && owner.isPrimaryConstructor());
}
/** Is this symbol a parameter? Includes type parameters of methods.