Commits

Maciej Fijalkowski committed 705665c Draft

give up and implement this convert_from_to

Comments (0)

Files changed (1)

rpython/rtyper/rptr.py

         if r_from.lowleveltype == r_to.lowleveltype:
             return v
         return NotImplemented
+
+class __extend__(pairtype(InteriorPtrRepr, InteriorPtrRepr)):
+
+    def convert_from_to((r_from, r_to), v, llops):
+        if r_from.__dict__ == r_to.__dict__:
+            return v
+        return NotImplemented