Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cs444
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xun Yang
cs444
Commits
46a36c31
Commit
46a36c31
authored
5 years ago
by
Nicholas Robinson
Browse files
Options
Downloads
Patches
Plain Diff
checkHierarchy switch to canonName
parent
d5a4bcd8
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
TypeNodes.py
+3
-3
3 additions, 3 deletions
TypeNodes.py
with
3 additions
and
3 deletions
TypeNodes.py
+
3
−
3
View file @
46a36c31
...
...
@@ -25,9 +25,9 @@ class ClassInterNode(ASTNode):
if
self
.
superInter
:
unique
=
[]
for
inter
in
self
.
superInter
:
if
inter
.
n
ame
in
unique
:
raise
Exception
(
"
ERROR: Class/Interface
'
{}
'
implements duplicate interfaces
'
{}
'"
.
format
(
self
.
name
,
inter
.
n
ame
))
unique
.
append
(
inter
.
n
ame
)
if
inter
.
canonN
ame
in
unique
:
raise
Exception
(
"
ERROR: Class/Interface
'
{}
'
implements duplicate interfaces
'
{}
'"
.
format
(
self
.
name
,
inter
.
canonN
ame
))
unique
.
append
(
inter
.
canonN
ame
)
# 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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment