Commit e9f4ee4b authored by Stefan Behnel's avatar Stefan Behnel

simplify comparison

parent 898f1766
...@@ -508,7 +508,7 @@ class Scope(object): ...@@ -508,7 +508,7 @@ class Scope(object):
entry.type.scope = scope entry.type.scope = scope
self.type_entries.append(entry) self.type_entries.append(entry)
if base_classes: if base_classes:
if entry.type.base_classes and not entry.type.base_classes == base_classes: if entry.type.base_classes and entry.type.base_classes != base_classes:
error(pos, "Base type does not match previous declaration") error(pos, "Base type does not match previous declaration")
else: else:
entry.type.base_classes = base_classes entry.type.base_classes = base_classes
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment