New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
default-assignment (//-) doesn't mix with implicit-variable method call in Rakudo #3003
Comments
From @masak<moritz> nr: my @a = <a b c>; my %h; %h{.value} //= .key for @a.pairs |
From @usev6The error messages are gone but still the implicit-variable method calls don't work: $ perl6 -e 'my @a = <a b c>; my %h; %h{.value} //= .key for @a.pairs; say %h' $ perl6 -e 'my $x //= .uc for "a"; say $x' For this second example I added a test (fudged 'todo') to S03-operators/assign.t with commit Raku/roast@b80e436b3f When the method is called directly the default-assignment works: $ perl6 -e 'my $x //= "a".uc; say $x' |
1 similar comment
From @usev6The error messages are gone but still the implicit-variable method calls don't work: $ perl6 -e 'my @a = <a b c>; my %h; %h{.value} //= .key for @a.pairs; say %h' $ perl6 -e 'my $x //= .uc for "a"; say $x' For this second example I added a test (fudged 'todo') to S03-operators/assign.t with commit Raku/roast@b80e436b3f When the method is called directly the default-assignment works: $ perl6 -e 'my $x //= "a".uc; say $x' |
@usev6 - Status changed from 'new' to 'open' |
From @usev6This works now. I unfudged the existing test and added a second test to S03-operators/assign.t I'm closing this ticket as 'resolved'. |
1 similar comment
From @usev6This works now. I unfudged the existing test and added a second test to S03-operators/assign.t I'm closing this ticket as 'resolved'. |
@usev6 - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#116178 (status was 'resolved')
Searchable as RT116178$
The text was updated successfully, but these errors were encountered: