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

Owner: Nobody
Requestors: cpan [at] zoffix.com
Cc:
AdminCc:

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



Subject: Using infix:<xx> to set default sometimes ends up as Seq in `where` clause
Download (untitled) / with headers
text/plain 819b
The issue I encountered is a case where when I assign a default created using infix:<xx> op, inside the `where` clause, it's not yet failed over, so I got exhausted Seq errors: <Zoffix__> m: -> +@commands, :@in where {dd $_; 1} = Nil xx 1 { @in.elems }([]) <camelia> rakudo-moar 61ecfd: OUTPUT: «(Nil,).Seq␤» Looking at it further, however, it appears most of the time it Does The Right Thing; and in fact, seems to be affected by unrelated things, such as whether there's another parameter before it and whether it got a `+` slurpy on it: <Zoffix__> m: -> @commands, :@in where {dd $_; 1} = Nil xx 1 { @in.elems }([]) <camelia> rakudo-moar 61ecfd: OUTPUT: «(Nil,)␤» <Zoffix__> m: -> :@in where {dd $_; 1} = Nil xx 1 { @in.elems }() <camelia> rakudo-moar 61ecfd: OUTPUT: «(Nil,)␤»


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