# New Ticket Created by  Moritz Lenz 
# Please include the string:  [perl #77350]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=77350 >


22:39 < moritz_> rakudo: grammar A { token TOP { <any> }; token any {
'foo' |  'bar' } }; say A.parse('foo')
22:39 <+p6eval> rakudo d1015f: OUTPUT«Too many positional parameters
passed; got 2 but expected 1␤  in 'Any::any' at line 1361:CORE.setting␤
in 'A::any' at line 22:/tmp/PUiWn8O0Uy␤  in 'A::TOP' at line
22:/tmp/PUiWn8O0Uy␤  in 'Grammar::parse' at line 5864:CORE.setting␤  in
main program body at line
22:39 <+p6eval> ..22:/tmp/PUiWn8O0Uy␤»
22:40 < moritz_> that's a bug, right?
22:40 < pmichaud> well, the grammar is overriding the .any method
22:41 < moritz_> pmichaud: but it's not the overridden .any method that
is called, right?
22:41 < pmichaud> moritz_: I'm still trying to figure out what's
happening there.

Reply via email to