Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Allow postfix operator called as method after unary postfix hyper ope…
…rator

currently something like '(my @A = 1)>>.++' fails, since METAOP_HYPER_CALL is called
instead of METAOP_HYPER_POSTFIX. Fixes RT #122342.
  • Loading branch information
usev6 committed Dec 19, 2014
1 parent 30edf7f commit 27a9887
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Perl6/Grammar.nqp
Expand Up @@ -3695,6 +3695,7 @@ grammar Perl6::Grammar is HLL::Grammar does STD {
[ ['.' <.unsp>?]? <postfix_prefix_meta_operator> <.unsp>?]**0..1
[
| <OPER=postfix>
| '.' <![i]> <OPER=postfix> ## postfix operator called as method, but not postfix:<i>
| <OPER=postcircumfix>
| <OPER=dotty>
| <OPER=privop>
Expand Down

1 comment on commit 27a9887

@moritz
Copy link

@moritz moritz commented on 27a9887 Dec 21, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could the <![i]> be replaced by <!postfix> or something like that? Special-casing just one postfix seems fragile to me

Please sign in to comment.