Skip Menu |
Report information
Id: 132133
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: [LTA] Nameless @/% sigils with `is rw` don't get complained about
Download (untitled) / with headers
text/plain 953b
IRC finding: https://irclog.perlgeek.de/perl6/2017-09-19#i_15189180 If you use `is rw` on @ or % sigiled params, you get an error saying it's not needed: <Zoffix__> m: -> @a is rw {} <camelia> rakudo-moar b66f5e: OUTPUT: «===SORRY!=== Error while compiling <tmp>␤For parameter '@a', '@' sigil containers don't need 'is rw' to be writable␤Can only use 'is rw' on a scalar ('$' sigil) parameter, not '@a'␤at <tmp>:1␤» <Zoffix__> m: -> %a is rw {} <camelia> rakudo-moar b66f5e: OUTPUT: «===SORRY!=== Error while compiling <tmp>␤For parameter '%a', '%' sigil containers don't need 'is rw' to be writable␤Can only use 'is rw' on a scalar ('$' sigil) parameter, not '%a'␤at <tmp>:1␤» But the same error doesn't appear when applying `is rw` on nameless params: <Zoffix__> m: -> @ is rw {} <camelia> rakudo-moar b66f5e: ( no output ) <Zoffix__> m: -> % is rw {} <camelia> rakudo-moar b66f5e: ( no output )


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