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

Owner: Nobody
Requestors: lue <rnddim [at] gmail.com>
Cc:
AdminCc:

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



Subject: Dynamic variable binding doesn't check for proper container
Download (untitled) / with headers
text/plain 947b
The broken behavior: <ShimmerFairy> m: my @*A := 42 <camelia> rakudo-moar bad9be: ( no output ) <ShimmerFairy> m: my %*A := 42 <camelia> rakudo-moar bad9be: ( no output ) <ShimmerFairy> m: my &*A := 42 <camelia> rakudo-moar bad9be: ( no output ) The expected behavior: <ShimmerFairy> m: my @A := 42 <camelia> rakudo-moar bad9be: OUTPUT«Type check failed in binding; expected Positional but got Int␤ in block <unit> at /tmp/T2aUUQrbL2:1␤␤» <ShimmerFairy> m: my %A := 42 <camelia> rakudo-moar bad9be: OUTPUT«Type check failed in binding; expected Associative but got Int␤ in block <unit> at /tmp/R8h3mTS3Ao:1␤␤» <ShimmerFairy> m: my &A := 42 <camelia> rakudo-moar bad9be: OUTPUT«Type check failed in binding; expected Callable but got Int␤ in block <unit> at /tmp/htfXw0lr56:1␤␤» Apparently rakudo's contextuals don't check binding to see if the object being bound is of the right type (Postional/Associative/Callable)
Download (untitled) / with headers
text/plain 169b
This problem is still reproducible. $ perl6 -e 'my @*A := 42' $ $ perl6 --version This is Rakudo version 2017.11 built on MoarVM version 2017.11 implementing Perl 6.c.


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