summaryrefslogtreecommitdiff
path: root/sources
diff options
context:
space:
mode:
authorpaltherr <paltherr@epfl.ch>2004-08-25 12:17:53 +0000
committerpaltherr <paltherr@epfl.ch>2004-08-25 12:17:53 +0000
commitbcde7a440694c3ca30547f3ab35ea199f2b1d9bc (patch)
treea407432e6fcad7eb881b2b09937ee9d023ab40a1 /sources
parente976f28a28f776756ad062305da39db43940ca87 (diff)
downloadscala-bcde7a440694c3ca30547f3ab35ea199f2b1d9bc.tar.gz
scala-bcde7a440694c3ca30547f3ab35ea199f2b1d9bc.tar.bz2
scala-bcde7a440694c3ca30547f3ab35ea199f2b1d9bc.zip
- Added assert to avoid modifications of Scope....
- Added assert to avoid modifications of Scope.EMPTY
Diffstat (limited to 'sources')
-rw-r--r--sources/scalac/symtab/Scope.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/sources/scalac/symtab/Scope.java b/sources/scalac/symtab/Scope.java
index ee20684da8..7206a9ca02 100644
--- a/sources/scalac/symtab/Scope.java
+++ b/sources/scalac/symtab/Scope.java
@@ -145,6 +145,7 @@ public class Scope {
}
public Scope enter(Entry e) {
+ assert this != Scope.EMPTY: Debug.show(e.sym);
elems = e;
elemsCache = null;
if (hashtable != null) {