mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-28 04:09:05 +00:00
fix(compiler): runtime type matching system
This commit is contained in:
parent
92614ce8d2
commit
af0fff8226
25 changed files with 793 additions and 429 deletions
|
@ -45,6 +45,8 @@ class IntMut(): # inherits Int
|
|||
self.value = Int(i)
|
||||
def __repr__(self):
|
||||
return self.value.__repr__()
|
||||
def __hash__(self):
|
||||
return self.value.__hash__()
|
||||
def __eq__(self, other):
|
||||
if isinstance(other, Int):
|
||||
return self.value == other
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue