Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mutlitconcat: fix non-folding adjacent consts
RT ##132646 v5.27.6-120-gbcc30fd changed multiconcat so that adjacent constants weren't folded, so that ($overloaded . "a" . "b") is invoked as $overloaded->concat("a")->concat("b") rather than $overloaded->concat("ab") It did this by 'demoting' every second adjacent const as a real arg rather than adding it to the const string. However, that could leave a multiconcat op with more than the maximum allowed args. So include demotion candidates as part of the arg count.
- Loading branch information
Showing
2 changed files
with
40 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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