(base) tanay@tanay-man:~/lcompilers/lpython$ lpython integration_tests/class_05.py
semantic error: Type mismatch in procedure call; the types must be compatible
--> integration_tests/class_05.py:21:11
|
21 | check(d)
| ^ type mismatch (passed argument type is struct Derived but required type is struct Base)
|
15 | def check(x: Base):
| ^^^^ type mismatch (passed argument type is struct Derived but required type is struct Base)
Op: