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

Range.new confused by Nil #6141

Open
p6rt opened this issue Mar 9, 2017 · 2 comments
Open

Range.new confused by Nil #6141

p6rt opened this issue Mar 9, 2017 · 2 comments

Comments

@p6rt
Copy link

p6rt commented Mar 9, 2017

Migrated from rt.perl.org#130968 (status was 'new')

Searchable as RT130968$

@p6rt
Copy link
Author

p6rt commented Mar 9, 2017

From zefram@fysh.org

The Range class allows almost anything to be used as an endpoint,
including most type objects. But Nil confuses it​:

Range.new(Nil, List).min
(Any)
(Nil..List).min
(Any)
Range.new(List, Nil)
List..Any

Nil is being changed into Any. If type objects are to be generally
permitted as Range endpoints, then Nil should work the same way as
the others.

-zefram

@p6rt p6rt added the Bug label Jan 5, 2020
@AlexDaniel
Copy link
Member

This was fixed in (2018-07-17) rakudo/rakudo@6ad096c

Tests needed.

@AlexDaniel AlexDaniel added testneeded and removed Bug labels Feb 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants