diff options
author | paltherr <paltherr@epfl.ch> | 2004-08-25 12:17:53 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2004-08-25 12:17:53 +0000 |
commit | bcde7a440694c3ca30547f3ab35ea199f2b1d9bc (patch) | |
tree | a407432e6fcad7eb881b2b09937ee9d023ab40a1 /sources/scalac/symtab | |
parent | e976f28a28f776756ad062305da39db43940ca87 (diff) | |
download | scala-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/scalac/symtab')
-rw-r--r-- | sources/scalac/symtab/Scope.java | 1 |
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) { |