Skip to content

Conversation

@1-1sam
Copy link
Contributor

@1-1sam 1-1sam commented Aug 24, 2025

This PR adds a todo test for #2027 which tests that perl does not re-use the same subroutine reference when passing distinct subs to a function. This test still appears to fail.


  • This set of changes does not require a perldelta entry.

This commit adds a todo test for GH 2027 which tests that perl does
not re-use the same subroutine reference when passing distinct subs to
a function.
@jkeenan
Copy link
Contributor

jkeenan commented Aug 24, 2025

When I build a perl from the branch in this p.r., then run t/run/todo.t,I get output like this:

not ok 2 - The same subroutine reference is not re-used when blessed; GH 2027 # TODO GH 2027
# Failed test 2 - The same subroutine reference is not re-used when blessed; GH 2027 at t/run/todo.t line 143
# it should not be "main=CODE(0x6117471c0df0)"
# but it is.

I don't see where the last two lines (starting with # it should not be) are coming from. Can you clarify? Thanks.

@1-1sam
Copy link
Contributor Author

1-1sam commented Aug 24, 2025

Those two lines are messages from the isnt() test from test.pl.

@khwilliamson khwilliamson merged commit beb2f63 into Perl:blead Aug 24, 2025
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants