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__()
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