1. Pypy
  2. Untitled project
  3. pypy

Commits

Manuel Jacob  committed 61380dc

Don't allow mixing of SomeChar and SomeUnicodeCodePoint.

  • Participants
  • Parent commits 4987a52
  • Branches default

Comments (0)

Files changed (1)

File rpython/annotator/binaryop.py

View file
         return SomeChar(no_nul=no_nul)
 
 
-class __extend__(pairtype(SomeChar, SomeUnicodeCodePoint),
-                 pairtype(SomeUnicodeCodePoint, SomeChar)):
-    def union((uchr1, uchr2)):
-        return SomeUnicodeCodePoint()
-
 class __extend__(pairtype(SomeUnicodeCodePoint, SomeUnicodeCodePoint)):
     def union((uchr1, uchr2)):
         return SomeUnicodeCodePoint()