Shouldn’t:

  sub ($ is rw) { }

be a compile-time error?  I mean, there is no way to actually assign to the 
anonymous variable, is there?  So there is no point in the “is rw”.  So most 
likely indicates a typo on the user side.

> On 29 Jun 2017, at 01:05, Zoffix Znet (via RT) <perl6-bugs-follo...@perl.org> 
> wrote:
> 
> # New Ticket Created by  Zoffix Znet 
> # Please include the string:  [perl #131673]
> # in the subject line of all future correspondence about this issue. 
> # <URL: https://rt.perl.org/Ticket/Display.html?id=131673 >
> 
> 
> Works as expected:
>    23:03              m: sub ($x is rw) {}(42)
>    camelia    rakudo-moar 2a8d1e: OUTPUT: «Parameter '$x' expected a 
> writable container, but got Int value␤  in sub  at <tmp> line 1␤  in 
> block <unit> at <tmp> line 1␤␤»
> 
> Doesn't:
>    23:04              m: sub ($ is rw) {}(42)
>    23:04      camelia rakudo-moar 2a8d1e: OUTPUT: «Internal error: 
> inconsistent bind result␤  in sub  at <tmp> line 1␤  in block <unit> at 
> <tmp> line 1␤␤»

Reply via email to