Closed lummax closed 9 years ago
Imagine: instance as SomeClass
instance as SomeClass
The check in TypeCheckVisitor would only check if SomeClass inherits the class of instance but not the other way arround. This MR fixes the issue and adds test-cases.
SomeClass
instance
Imagine:
instance as SomeClass
The check in TypeCheckVisitor would only check if
SomeClass
inherits the class ofinstance
but not the other way arround. This MR fixes the issue and adds test-cases.