diff --git a/src/sixtypical/analyzer.py b/src/sixtypical/analyzer.py index 5d9012c..63fd209 100644 --- a/src/sixtypical/analyzer.py +++ b/src/sixtypical/analyzer.py @@ -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: diff --git a/src/sixtypical/model.py b/src/sixtypical/model.py index 1868045..ac2ae6d 100644 --- a/src/sixtypical/model.py +++ b/src/sixtypical/model.py @@ -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