diff --git a/src/Raku/Grammar.nqp b/src/Raku/Grammar.nqp index be4f8e50c97..2758a5cca23 100644 --- a/src/Raku/Grammar.nqp +++ b/src/Raku/Grammar.nqp @@ -20,6 +20,9 @@ my role stop[$stop] { token stopper { $stop } } +#------------------------------------------------------------------------------- +# Functionality common to all Raku grammars + role Raku::Common { #------------------------------------------------------------------------------- @@ -68,7 +71,7 @@ role Raku::Common { # Reset expectations method reset-expectations() { - self.'!set_highexpect'(nqp::list_s) + nqp::setelems(self.'!highexpect'(),0) } #-------------------------------------------------------------------------------