-
Notifications
You must be signed in to change notification settings - Fork 516
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
Sorbet runtime does not support limitless ranges properly #3093
Comments
Probably just a matter of editing this: sorbet/gems/sorbet-runtime/lib/types/types/typed_enumerable.rb Lines 52 to 53 in ba767ec
to check if |
I created a PR for this: #3094 I'll wait until tests pass before assigning it out. The main documentation doesn't say how to run tests -- how am I able to run these tests? I want to verify locally these tests fail with the old code and pass with the new. |
* [Issue #3093] Fix T::Range validation on limitless ranges * add tests * change valid? method too * code review * fix nil to nil test * add tests for nil * change type to non-nilable integer * code review * code review Co-authored-by: Jake Zimmerman <zimmerman.jake@gmail.com>
Input
→ View on sorbet.run
Observed output
Static Output
Runtime output
Expected behavior
No error when validating runtime signatures.
The text was updated successfully, but these errors were encountered: