From bb8d3aff71f8f89bed2ab94f382675a2312b1893 Mon Sep 17 00:00:00 2001 From: bd-912 Date: Sat, 6 Apr 2024 21:10:55 -0600 Subject: Add test file, fix minor issues in SymbolTable --- st/AbstractInstance.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'st/AbstractInstance.java') 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() { -- cgit v1.2.3