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

For review: fix issue 53 by fiddling with assignability check #54

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

benjamin-hodgson
Copy link
Contributor

This fixes #53. The IsAssignableFrom method wasn't accounting for the fact that you can assign a (boxed) struct to an interface.

I'm not very familiar with the codebase, so I don't know if this is the most effective way of fixing the bug, although the tests do all pass. Have a look at my code, feedback very welcome 😉

…an assign a (boxed) struct to an interface. This fixes #53
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.

Sigil incorrectly fails when calling a virtual method on a struct
1 participant