-
-
Notifications
You must be signed in to change notification settings - Fork 671
Incorrect overriden function call #2819
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
Labels
Comments
Thanks for your report. It is a bug in compiler. |
I think the bogus code is in compiler.ts/finalizeOverrideStub
I recommend changing it into something like this:
My project is running correctly after applying this change. |
This was referenced Mar 1, 2024
HerrCai0907
added a commit
to HerrCai0907/assemblyscript
that referenced
this issue
Mar 1, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug description
Incorrect function will be called if a derived class does not have a function override.
Steps to reproduce
Paste this code into the AssemblyScript playground window at www.assemblyscript.org
expected output:
actual output:
Note: It will work correctly, if you change the variable definition to this:
let x:D = new D();
or this:
let x:A = new C();
AssemblyScript version
v0.27.24
The text was updated successfully, but these errors were encountered: