def _type(context, dest: Arg, src: Arg): dest.set_value(context, src.get_data_type(context))
def _check_if_same_type(context, arg1: Arg, arg2: Arg): if arg1.get_data_type(context) != arg2.get_data_type(context): raise OperandTypeError("Argumenty musí být stejného typu".format( context.get_current_inst().opcode, context.get_inst_number()))