You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version: Rakudo version 2017.08-14-gf097e551b built on MoarVM version
2017.08.1-32-gcd41322e
implementing Perl 6.c.
When running the attached script, the error output should be:
No such method 'hash' for invocant of type 'Matcher'
Instead, the error given is:
P6opaque: no such attribute '$!pos' in type Match when trying to get a value
Test case:
grammar Matcher {
rule TOP { <hash> }
proto rule atom {*}
rule atom:sym<hash> { . }
}
Matcher.parse('x'); # Generates the wrong error.
'x' ~~ /<Matcher::TOP>/; # Generates the same error as above.
'x' ~~ /<Matcher::hash>/; # Generates the right error.
Migrated from rt.perl.org#131972 (status was 'new')
Searchable as RT131972$
The text was updated successfully, but these errors were encountered: