Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Convert NQPRegex.ACCEPTS to be multimethods based on concrete-ness.

  • Loading branch information...
commit 1b11be1b1767fe1763b3716220089cb80fdf7c1f 1 parent 3d5e761
@pmichaud pmichaud authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/QRegex/Cursor.nqp
View
4 src/QRegex/Cursor.nqp
@@ -820,7 +820,7 @@ class NQPRegexMethod {
method new($code) {
self.bless(:code($code));
}
- method ACCEPTS($target) {
+ multi method ACCEPTS(NQPRegexMethod:D $self: $target) {
NQPCursor.parse($target, :rule(self))
}
method name() {
@@ -833,7 +833,7 @@ class NQPRegexMethod {
nqp::setinvokespec(NQPRegexMethod, NQPRegexMethod, '$!code', nqp::null);
class NQPRegex is NQPRegexMethod {
- method ACCEPTS($target) {
+ multi method ACCEPTS(NQPRegex:D $self: $target) {
NQPCursor.parse($target, :rule(self), :c(0))
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.