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

Checking for methodset existance #4126

Merged
merged 2 commits into from May 13, 2024

Conversation

marco6
Copy link

@marco6 marco6 commented Feb 13, 2024

This PR adds a check for the existence of the methodset in the interpreter implementation of typeasserts. This is necessary since this field is optional.

This should be the last bit that fixes #3788 since pull #3986 only covers XXX.(any) cases and still crashes if the interface has methods. As such, it should also fix #4079.

As a last note, I also tried a different approach here where I forced the methodset to be mandatory as I felt it was more robust, but the simplicity of these 4 lines seems to be unmatched.

@marco6 marco6 force-pushed the check-for-methodset-existance branch from 94f79c9 to 0e05885 Compare March 5, 2024 14:43
@dgryski
Copy link
Member

dgryski commented Mar 5, 2024

/cc @aykevl

@marco6 marco6 requested a review from aykevl April 3, 2024 07:19
@TheSignPainter98
Copy link

Any progress on this? I'm also having this issue

Copy link
Member

@aykevl aykevl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@aykevl aykevl merged commit 71878c2 into tinygo-org:dev May 13, 2024
16 checks passed
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.

None yet

4 participants