Executable types are compatible with other executable types.
Chris Pressey
7 years ago
367 | 367 | # TODO ideally we'd check if the vectors in the table are compatible, rather than equal, to the src |
368 | 368 | pass |
369 | 369 | 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)) | |
371 | 371 | |
372 | 372 | elif isinstance(src, IndexedRef) and isinstance(dest, LocationRef): |
373 | 373 | if TableType.is_a_table_type(src.ref.type, TYPE_WORD) and dest.type == TYPE_WORD: |