Make tests pass.
Chris Pressey
4 years ago
513 | 513 | pass |
514 | 514 | else: |
515 | 515 | raise TypeMismatchError((src, dest)) |
516 | context.assert_in_range(dest.index, dest.ref) | |
516 | 517 | |
517 | 518 | elif isinstance(src, IndexedRef) and isinstance(dest, LocationRef): |
518 | 519 | if TableType.is_a_table_type(src.ref.type, TYPE_WORD) and dest.type == TYPE_WORD: |
522 | 523 | pass |
523 | 524 | else: |
524 | 525 | raise TypeMismatchError((src, dest)) |
526 | context.assert_in_range(src.index, src.ref) | |
525 | 527 | |
526 | 528 | elif isinstance(src, (LocationRef, ConstantRef)) and isinstance(dest, LocationRef): |
527 | 529 | if src.type == dest.type: |