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

Semantic: missing restriction logic for generic instance module type #5132

Closed
wants to merge 1 commit into from
Closed

Semantic: missing restriction logic for generic instance module type #5132

wants to merge 1 commit into from

Conversation

asterite
Copy link
Member

Fixes #4287

There was missing logic regarding generic module instances.

The whole logic in restrictions.cr is full of duplicated code and it's quite complex, so right now this is the easiest way to fix these things. Eventually the whole type system implementation should change and be simpler, but when that happens we'll have the specs to make sure nothing breaks.

@asterite asterite self-assigned this Oct 16, 2017
@asterite
Copy link
Member Author

asterite commented Oct 16, 2017

This PR is wrong. I don't understand the code anymore ¯\_(ツ)_/¯

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.

Generic modules: is_a? returns incorrect value
1 participant