summaryrefslogtreecommitdiff
path: root/sources/scalac/symtab/Symbol.java
diff options
context:
space:
mode:
Diffstat (limited to 'sources/scalac/symtab/Symbol.java')
-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.