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

Compiler: fix type check not considering virtual types #10304

Merged
merged 1 commit into from
Jan 28, 2021

Conversation

asterite
Copy link
Member

Fixes #10302

It turns out the Sup in one case is a non-virtual type (right when the module is included) but it's a virtual type when it's checked (because at that point a subtype was added).

Regardless of whether virtual types should be produced in all cases, this fixes the regression now. We can improve this later on.

@asterite asterite added kind:bug kind:regression Something that used to correctly work but no longer works topic:compiler:semantic labels Jan 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug kind:regression Something that used to correctly work but no longer works topic:compiler:semantic
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Struct #is_a? fails for generic module included in abstract superstruct
2 participants