mirror of
https://github.com/catseye/SixtyPical.git
synced 2025-01-25 08:30:07 +00:00
Executable types are compatible with other executable types.
This commit is contained in:
parent
0fff8e4f0a
commit
13e6654088
@ -368,7 +368,7 @@ class Analyzer(object):
|
||||
# TODO ideally we'd check if the vectors in the table are compatible, rather than equal, to the src
|
||||
pass
|
||||
else:
|
||||
raise TypeMismatchError("""\n\n%r\n\n%r\n\n%r\n\n%r\n\n%r\n\n%r""" % (src, src.type, dest, dest.ref.type, dest.ref.type.of_type, (src.type == dest.ref.type.of_type)))
|
||||
raise TypeMismatchError((src, dest))
|
||||
|
||||
elif isinstance(src, IndexedRef) and isinstance(dest, LocationRef):
|
||||
if TableType.is_a_table_type(src.ref.type, TYPE_WORD) and dest.type == TYPE_WORD:
|
||||
|
@ -37,7 +37,7 @@ class ExecutableType(Type):
|
||||
)
|
||||
|
||||
def __eq__(self, other):
|
||||
return isinstance(other, RoutineType) and (
|
||||
return isinstance(other, ExecutableType) and (
|
||||
other.name == self.name and
|
||||
other.inputs == self.inputs and
|
||||
other.outputs == self.outputs and
|
||||
|
Loading…
x
Reference in New Issue
Block a user