-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Polymorphic function args dont work #2799
Comments
I think the subclass has to be automatically cast to the base class in this case. |
Let's represent the Cast node in the ASR def main():
d : Derived = Derived()
check(d) will become: def main():
d : Derived = Derived()
check(Cast(d, DerivedToBase, Base, nullptr)) Using the Base name, get the Base type in the asr to llvm backend. |
@Thirumalai-Shaktivel I have implemented the ASR level cast node for this. How to get the cast working in the llvm backend?
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Op:
The text was updated successfully, but these errors were encountered: