1
0
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:
Chris Pressey 2018-02-02 17:48:57 +00:00
parent 0fff8e4f0a
commit 13e6654088
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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