Fix DateTime::Calendar::Hebrew clone test#783
Merged
Conversation
Preserve Perl print disambiguation for unresolved barewords such as `print Dumper $object` so they become bareword filehandles instead of indirect method calls. Keep declared and defined subroutines taking precedence over filehandle autovivification. Generated with [Codex](https://openai.com/codex) Co-Authored-By: Codex <codex@openai.com>
Avoid treating core operators, v-string prefixes, and immediate bareword function calls after print as autovivified filehandles. This keeps the DateTime::Calendar::Hebrew Dumper case working without regressing Perl core tests that print qq(), v-strings, or B::svref_2object(...). Generated with [Codex](https://openai.com/codex) Co-Authored-By: Codex <codex@openai.com>
d6fe8bf to
9d84b28
Compare
Do not autovivify an unresolved print bareword as a filehandle when the next real token is a method dereference. This keeps `print Fake->foo` parsing and executing as a class method call while preserving the DateTime::Calendar::Hebrew `print Dumper $clone` case. Generated with [Codex](https://openai.com/codex) Co-Authored-By: Codex <codex@openai.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
print Dumper $objectparsing so unresolved barewords afterprintare treated as bareword filehandles instead of indirect object method calls.print.Tests
make./jcpan -t DateTime::Calendar::Hebrew