Skip to content

t/basics/definition_context.t - adapt for improved line number reporting#188

Open
richardleach wants to merge 1 commit into
moose:masterfrom
richardleach:5.45.0_line_numbers
Open

t/basics/definition_context.t - adapt for improved line number reporting#188
richardleach wants to merge 1 commit into
moose:masterfrom
richardleach:5.45.0_line_numbers

Conversation

@richardleach

Copy link
Copy Markdown

Early in the next development cycle of the perl interpreter, an attempt will be made to improve the inaccuracy of line number reporting by warnings/error and caller(), starting with:

These changes break one test in this module written to match a specific emitted line number.

This commit should ensure that the affected test succeeds regardless of whether the perl version in use demonstrates the older, buggier behaviour or the behaviour once the above pull requests are merged. (This would also reduce churn if those PRs are merged and present in some tagged releases, but then later reverted.)

…eporting

Early in the next development cycle of the perl interpreter, an attempt will
be made to improve the inaccuracy of line number reporting by warnings/error
and caller(), starting with:

Perl/perl5#24387 - starting statement in elsif() blocks
Perl/perl5#24389 - loop condition statements
Perl/perl5#24396 - mid-statement anon sub declarations

These changes break one test in this module written to match a specific
emitted line number.

This commit should ensure that the affected test succeeds regardless of
whether the perl version in use demonstrates the older, buggier behaviour
or the behaviour once the above pull requests are merged. (This would also
reduce churn if those PRs are merged and present in some tagged releases,
but then later reverted.)
@richardleach richardleach force-pushed the 5.45.0_line_numbers branch from f0eba01 to 3cfeca9 Compare May 4, 2026 19:33
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.

1 participant