Skip to content

Commit 21e8038

Browse files
committed
Make !cursor_init ignore unknown named args.
Easiest way to fix Grammar.parse failing to match Perl 6 interface consistency rules.
1 parent d6370eb commit 21e8038

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/QRegex/Cursor.nqp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ role NQPCursorRole is export {
115115
$caps;
116116
}
117117

118-
method !cursor_init($orig, :$p = 0, :$c, :$shared) {
118+
method !cursor_init($orig, :$p = 0, :$c, :$shared, *%ignore) {
119119
my $new := self.CREATE();
120120
unless $shared {
121121
$shared := nqp::create(ParseShared);

0 commit comments

Comments
 (0)