git @ Cat's Eye Technologies SixtyPical / 13e6654
Executable types are compatible with other executable types. Chris Pressey 7 years ago
2 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
367367 # TODO ideally we'd check if the vectors in the table are compatible, rather than equal, to the src
368368 pass
369369 else:
370 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)))
370 raise TypeMismatchError((src, dest))
371371
372372 elif isinstance(src, IndexedRef) and isinstance(dest, LocationRef):
373373 if TableType.is_a_table_type(src.ref.type, TYPE_WORD) and dest.type == TYPE_WORD:
3636 )
3737
3838 def __eq__(self, other):
39 return isinstance(other, RoutineType) and (
39 return isinstance(other, ExecutableType) and (
4040 other.name == self.name and
4141 other.inputs == self.inputs and
4242 other.outputs == self.outputs and