Skip to content
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

when doing safe_cast on HVIRTUAL, ignore extra fields from input type #691

Closed

Conversation

m0rkeulv
Copy link
Member

@m0rkeulv m0rkeulv commented Jun 18, 2024

Not 100% sure this does not break anything else, but what i am attempting here is to solve the issue where interfaces that extends other interfaces and override a method signature by changing its return type ends up corrupting something making the runtime call a different unrelated method.

this fixes the interface-wrong method issue (#685).

Note that it does not fix the Access Violation you get from typedef example, however they seem to be related, if i on purpose set hl_vfields(v)[i] to the method reference instead of NULL when hl_safe_cast returns false in hl_to_virtual, the typedef variant runs just fine as well.

@m0rkeulv m0rkeulv marked this pull request as draft June 18, 2024 23:06
@m0rkeulv
Copy link
Member Author

Problem fixed in Haxe HaxeFoundation/haxe#11723

@m0rkeulv m0rkeulv closed this Jul 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant