Permalink
Browse files

Track s/Cursor.new/Cursor.cursor_start/

  • Loading branch information...
1 parent b12f0e7 commit ea5d9a0e3e875989d724b87a0de02529e4e715b9 @sorear committed Oct 29, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/STD.pm6
View
3 src/STD.pm6
@@ -5139,9 +5139,10 @@ method getsig {
<?before <[ \$ \@ \% \& ]> \w >
}
+ my $new = Cursor.^can('cursor_start');
if ($*CURLEX<!multi>//'') ne 'proto' {
for $*CURLEX<!sub>.unused_lexicals -> $k, $pos {
- next unless interesting(Cursor.new($k));
+ next unless interesting($new ?? Cursor.cursor_start($k) !! Cursor.new($k));
# next if $[_/!] declared automatically "dynamic" TODO
next unless $pos >= 0;
self.cursor($pos).worry("$k is declared but not used");

0 comments on commit ea5d9a0

Please sign in to comment.