Skip to content
Snippets Groups Projects
Commit 46a36c31 authored by Nicholas Robinson's avatar Nicholas Robinson
Browse files

checkHierarchy switch to canonName

parent d5a4bcd8
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment