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

Eliminate doubled case in visit_cast. #5011

Merged

Conversation

akzhan
Copy link
Contributor

@akzhan akzhan commented Sep 20, 2017

Just minor cleanup.

@asterite asterite merged commit 0fdf721 into crystal-lang:master Sep 20, 2017
@asterite
Copy link
Member

I might consider making the compiler give an error in this case. I think it's at least safe to error a literal is repeated, maybe if a variable too. With method calls it's a bit tricky because they might have side effects (you shouldn't do that anyway, but we can't assume that)

@akzhan akzhan deleted the eliminate-doubled-case-in-visit_cast branch September 20, 2017 14:37
@asterite asterite added this to the Next milestone Sep 25, 2017
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

3 participants