summaryrefslogtreecommitdiff
path: root/sources/scalac/symtab/Scope.java
diff options
context:
space:
mode:
Diffstat (limited to 'sources/scalac/symtab/Scope.java')
-rw-r--r--sources/scalac/symtab/Scope.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/sources/scalac/symtab/Scope.java b/sources/scalac/symtab/Scope.java
index 477144cd3a..c9daf10c5a 100644
--- a/sources/scalac/symtab/Scope.java
+++ b/sources/scalac/symtab/Scope.java
@@ -79,7 +79,7 @@ public class Scope {
*/
public final Scope owner;
- Entry(Symbol sym, Scope owner) {
+ public Entry(Symbol sym, Scope owner) {
this.sym = sym;
this.owner = owner;
this.next = owner.elems;
@@ -173,7 +173,7 @@ public class Scope {
return s;
}
- private Scope enter(Entry e) {
+ public Scope enter(Entry e) {
elems = e;
elemsCache = null;
if (hashtable != null) {
@@ -189,6 +189,7 @@ public class Scope {
/** enter a symbol
*/
public Scope enter(Symbol sym) {
+ assert !sym.isConstructor();
return enter(new Entry(sym, this));
}