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

Fix: missing virtual types in literal type guessing #6341

Merged

Conversation

asterite
Copy link
Member

@asterite asterite commented Jul 6, 2018

Fixes #5342

A few virtual_type calls were missing.

Copy link
Member

@bcardiff bcardiff left a comment

Choose a reason for hiding this comment

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

Maybe in the long run something to have in mind is to default to virtual type and anchor when a type value should not be virtualized.

@asterite
Copy link
Member Author

asterite commented Jul 6, 2018

Yeah, right now virtual types make the language really complex, so having that by defaut might be a good idea.

@ysbaddaden ysbaddaden merged commit 8acbd26 into crystal-lang:master Jul 6, 2018
@ysbaddaden ysbaddaden added this to the Next milestone Jul 6, 2018
@asterite asterite deleted the bug/5342-guess-literals-virtual branch July 6, 2018 22:54
@RX14 RX14 modified the milestones: Next, 0.26.0 Jul 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants