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
Good day, I know that right now the inheritance needs to be consider as experimental but when trying to inherit A, B and C I'm getting the following error
class A:
_map: Dict[str, str]
def __init__(self):
self._map = Dict[str, str]()
class B(A):
def __init__(self):
super().__init__()
class C(B):
placeholder: str
def __init__(self):
super().__init__()
test = C()
Assert failed: cannot find distance between C.4 and B.6 [:0:0]
Expression: found || ctx->cache->classes[baseTyp->name].fields.empty()
Source: /github/workspace/codon/parser/visitors/typecheck/infer.cpp:476
Aborted
Adding an attribute to B, solves the problem, but not sure if this is the expected behavior
class B(A):
test: cr
def __init__(self):
super().__init__()
The text was updated successfully, but these errors were encountered:
Good day, I know that right now the inheritance needs to be consider as experimental but when trying to inherit A, B and C I'm getting the following error
Assert failed: cannot find distance between C.4 and B.6 [:0:0]
Expression: found || ctx->cache->classes[baseTyp->name].fields.empty()
Source: /github/workspace/codon/parser/visitors/typecheck/infer.cpp:476
Aborted
Adding an attribute to B, solves the problem, but not sure if this is the expected behavior
The text was updated successfully, but these errors were encountered: