summaryrefslogtreecommitdiff
path: root/sources/scalac/typechecker/RefCheck.java
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2003-07-16 10:49:15 +0000
committerMartin Odersky <odersky@gmail.com>2003-07-16 10:49:15 +0000
commit0a0595a1c73b956f8582879d518c75970b910c23 (patch)
tree5bffa1f28df8a5cb2b7451c18fc3a9acf85c3722 /sources/scalac/typechecker/RefCheck.java
parent9aaa79cdba130a6e22e9b761d5a1f78720a2a180 (diff)
downloadscala-0a0595a1c73b956f8582879d518c75970b910c23.tar.gz
scala-0a0595a1c73b956f8582879d518c75970b910c23.tar.bz2
scala-0a0595a1c73b956f8582879d518c75970b910c23.zip
*** empty log message ***
Diffstat (limited to 'sources/scalac/typechecker/RefCheck.java')
-rw-r--r--sources/scalac/typechecker/RefCheck.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/sources/scalac/typechecker/RefCheck.java b/sources/scalac/typechecker/RefCheck.java
index 79a3e1a015..8c8f899abd 100644
--- a/sources/scalac/typechecker/RefCheck.java
+++ b/sources/scalac/typechecker/RefCheck.java
@@ -27,7 +27,7 @@ import Tree.*;
*
* It preforms the following transformations.
*
- * - Local modules are replaces by variables and classes
+ * - Local modules are replaced by variables and classes
* - toString, equals, and hashCode methods are added to case classes, unless
* they are defined in the class or a baseclass different from java.lang.Object
* - Calls to case factory methods are replaced by new's.
@@ -903,7 +903,12 @@ public class RefCheck extends Transformer implements Modifiers, Kinds {
//System.out.println("name: "+name);
Scope.Entry e = scopes[level].lookupEntry(name);
+<<<<<<< RefCheck.java
+ //System.out.println("sym: "+sym);
+ if (sym == null) unit.error(tree.pos, "sym is null");
+=======
//System.out.println("sym: "+sym);
+>>>>>>> 1.27
if (sym.isLocal() && sym == e.sym) {
int i = level;
while (scopes[i] != e.owner) i--;