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
Useless use of $a in sink context is spurious #5498
Comments
From @ajsIn this code: sub infix:<↑>($a, $b) is assoc<right> {$a ** $b}; sub infix:<↑↑>($a, $b) is The say produces the right answer (7625597484987) but it also produces this Useless use of $a in sink context (line 1) It's not clear why this would be, since we are using both $a and $b in a This result is on latest circa: This is Rakudo version 2016.07.1-79-gaa5e494 built on MoarVM version Under: Linux hostname 3.13.0-24-generic #47-Ubuntu SMP Fri May 2 23:30:00 UTC 2014 From IRC discussion: [15:45] <harmil_wk> m: sub infix:<↑>($a, $b) is assoc<right> {$a ** $b}; -- |
From @TimToadyThe onearg form of reduce wasn't correctly marking wantedness of either the operator or the argument. Fixed in fc28b67185d711cf8e4b3f9e6987e1ceee34e37b. (We don't test sink warnings currenlty.) |
1 similar comment
From @TimToadyThe onearg form of reduce wasn't correctly marking wantedness of either the operator or the argument. Fixed in fc28b67185d711cf8e4b3f9e6987e1ceee34e37b. (We don't test sink warnings currenlty.) |
@TimToady - Status changed from 'new' to 'resolved' |
From @cokeRe-opening, marking testneeded. -- |
1 similar comment
From @cokeRe-opening, marking testneeded. -- |
@coke - Status changed from 'resolved' to 'open' |
From @LLFourntest: On Sat, Jul 30, 2016 at 5:36 AM Will Coleda via RT <
|
@smls - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#128766 (status was 'resolved')
Searchable as RT128766$
The text was updated successfully, but these errors were encountered: