From 46a36c31943203eeb269552eeb4802ee9d95c2eb Mon Sep 17 00:00:00 2001
From: Nicholas Robinson <nwrobins@edu.uwaterloo.ca>
Date: Fri, 6 Mar 2020 18:56:19 -0500
Subject: [PATCH] checkHierarchy switch to canonName

---
 TypeNodes.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/TypeNodes.py b/TypeNodes.py
index 85d32ee..2967c2d 100644
--- a/TypeNodes.py
+++ b/TypeNodes.py
@@ -25,9 +25,9 @@ class ClassInterNode(ASTNode):
         if self.superInter:
             unique = []
             for inter in self.superInter:
-                if inter.name in unique:
-                    raise Exception("ERROR: Class/Interface '{}' implements duplicate interfaces '{}'".format(self.name, inter.name))
-                unique.append(inter.name)
+                if inter.canonName in unique:
+                    raise Exception("ERROR: Class/Interface '{}' implements duplicate interfaces '{}'".format(self.name, inter.canonName))
+                unique.append(inter.canonName)
 
         # 7. A class or interface must not declare two methods with the same signature (name and parameter types).
         # 9. A class/interface must not contain two methods with the same signature but different return types
-- 
GitLab