Skip to content

Commit

Permalink
Fudge typing on Match.synthetic
Browse files Browse the repository at this point in the history
  • Loading branch information
sorear committed Jan 27, 2012
1 parent bef38b1 commit 2537901
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/CORE.setting
Expand Up @@ -2523,15 +2523,15 @@ my class Match is Cool does Associative does Positional {
method CURSOR() { Q:CgOp { (ns (cursor_unmatch (cast cursor (@ {self})))) } }
method cursor() { Q:CgOp { (ns (cursor_unmatch (cast cursor (@ {self})))) } }
method reduced() { Q:CgOp { (box Str (cursor_reduced (cast cursor (@ {self})))) } }
method synthetic(:$cursor!, :$method = "", :@captures, :$from!, :$to!) {
method synthetic(:$cursor!, :$method = "", :$captures, :$from!, :$to!) {
my $*match;
Q:CgOp {
(prog
(cursor_synthetic
(cast cursor (@ {$cursor})) (obj_getstr {$method})
(cast int (obj_getnum {$from}))
(cast int (obj_getnum {$to}))
{@captures})
{@$captures})
{$*match})
};
}
Expand Down

0 comments on commit 2537901

Please sign in to comment.