Skip to content

Commit

Permalink
Allow postfix operator called as method after unary postfix hyper ope…
Browse files Browse the repository at this point in the history
…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

0 comments on commit 27a9887

Please sign in to comment.