Closed thaljef closed 10 years ago
Balls. Thanks, i'll try and figure out how to fix that.
This is one of those cases where i wish I'd written a more generic operator vs operand context thingy. On Nov 5, 2014 6:49 PM, "Christian Walde" notifications@github.com wrote:
Balls. Thanks, i'll try and figure out how to fix that.
— Reply to this email directly or view it on GitHub https://github.com/adamkennedy/PPI/issues/94#issuecomment-61919666.
Ok, i think i fixed this.
@adamkennedy : Can you please look at the commit to verify that the change looks sane for this issue?
Further, can you please make another issue elaborating on what you mean with operator/operand context/method?
@thaljef : This issue has been present since roughly 2006. As such, i hope you don't mind if this fix will be released with 1.222, and 1.220 to be released unchanged from the dev release.
i hope you don't mind if this fix will be released with 1.222
@wchristian: No problem.
In the following expression, the
*
operator is misclassified as a cast:Parse tree (PPI version 1.219_001)
NB: Adding whitespace after the
*
operator produces the correct result.This was originally reported as Perl-Critic/Perl-Critic#604