You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
python3 produces '3' while codon produces: error: 'B' object has no attribute 'n'
If I rewrite it as:
class A:
def __init__(self):
self.n = 2
class B(A):
def __init__(self):
A.__init__(self)
self.o = 3
print(B().n)
codon produces:
y.py:3:9-13: error: 'A' object has no attribute 'n'
├─ y.py:6:9-25: error: during the realization of init(self: A)
╰─ y.py:8:7-12: error: during the realization of init(self: B)
The text was updated successfully, but these errors were encountered:
python3 produces '3' while codon produces: error: 'B' object has no attribute 'n'
If I rewrite it as:
codon produces:
y.py:3:9-13: error: 'A' object has no attribute 'n'
├─ y.py:6:9-25: error: during the realization of init(self: A)
╰─ y.py:8:7-12: error: during the realization of init(self: B)
The text was updated successfully, but these errors were encountered: