Skip Menu |
Report information
Id: 130968
Status: new
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: zefram [at] fysh.org
Cc:
AdminCc:

Severity: (no value)
Tag: Bug
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Date: Thu, 9 Mar 2017 19:29:47 +0000
To: rakudobug [...] perl.org
Subject: [BUG] Range.new confused by Nil
From: Zefram <zefram [...] fysh.org>
Download (untitled) / with headers
text/plain 365b
The Range class allows almost anything to be used as an endpoint, including most type objects. But Nil confuses it: Show quoted text
> Range.new(Nil, List).min
(Any) Show quoted text
> (Nil..List).min
(Any) Show quoted text
> 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


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org