diff options
author | bd-912 <bdunahu@colostate.edu> | 2024-04-06 21:10:55 -0600 |
---|---|---|
committer | bd-912 <bdunahu@colostate.edu> | 2024-04-06 21:10:55 -0600 |
commit | bb8d3aff71f8f89bed2ab94f382675a2312b1893 (patch) | |
tree | aea71a22ad5a893083feebb661a50a413f4f0049 /st/AbstractInstance.java | |
parent | 8e660afb356c1f6d0b9cd115426cf21129e5d304 (diff) |
Add test file, fix minor issues in SymbolTable
Diffstat (limited to 'st/AbstractInstance.java')
-rw-r--r-- | st/AbstractInstance.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/st/AbstractInstance.java b/st/AbstractInstance.java index 7acc3e5..a6c2ca1 100644 --- a/st/AbstractInstance.java +++ b/st/AbstractInstance.java @@ -16,7 +16,8 @@ public abstract class AbstractInstance { } public boolean equals(AbstractInstance other) { - return this.name == other.getName(); + return this.name == other.getName() && + this.type == this.type; } public int hashCode() { |