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

Remove compile-time error for Range#size, #each, #sample #13278

Merged

Conversation

straight-shoota
Copy link
Member

Resolves #13121

@straight-shoota straight-shoota added this to the 1.8.0 milestone Apr 4, 2023
@straight-shoota straight-shoota merged commit 251137c into crystal-lang:master Apr 5, 2023
@straight-shoota straight-shoota deleted the fix/range-raise-nil branch April 5, 2023 13:16
@HertzDevil
Copy link
Contributor

It seems this requires unimplemented functionality in the interpreter

@Sija
Copy link
Contributor

Sija commented Apr 5, 2023

Btw, why nil is not being shown in the error message?

Error: compiling (::Range.new(3, , false)).reverse_each do

https://github.com/crystal-lang/crystal/actions/runs/4609247266/jobs/8148834738#step:6:1151

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.

Range#size raises compile time error
4 participants