Skip to content

Commit 0de7ee6

Browse files
committed
Add todo-test for GH 16665 (surprising precedence issue: sort f()->@*)
1 parent b7b77ff commit 0de7ee6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

t/run/todo.t

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,12 @@ TODO: {
290290
is($?, 0, 'No assertion failure; GH 16522');
291291
}
292292

293+
TODO: {
294+
local $::TODO = 'GH 16665';
295+
my $results = fresh_perl('sub f {[1,2,3]}; print sort f()->@*', {});
296+
is($results, '123', 'function return value sorted before postfix dereference; GH 16665');
297+
}
298+
293299
TODO: {
294300
todo_skip "Test needs -DDEBUGGING", 1 unless $is_debugging_build;
295301
local $::TODO = 'GH 16863';

0 commit comments

Comments
 (0)