Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Check new "samewith" functionality
  • Loading branch information
lizmat committed Aug 7, 2013
1 parent 7bf6bb8 commit 184ff24
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions S12-methods/defer-next.t
Expand Up @@ -107,14 +107,14 @@ class BarNextWithInt is Foo {
multi method l ( %t, *@list ) {
$r ~= '%';
$r ~= @list.join;
#nextwith( { %t{$^a} }, @list ); # not intended to work
&?ROUTINE.dispatcher()( self, { %t{$^a} }, @list );
samewith( { %t{$^a} }, @list );
# &?ROUTINE.dispatcher()( self, { %t{$^a} }, @list );
}
multi method l ( @t, *@list ) {
$r ~= '@';
$r ~= @list.join;
#nextwith( { @t[$^a] }, @list ); # not intended to work
&?ROUTINE.dispatcher()( self, { @t[$^a] }, @list );
samewith( { @t[$^a] }, @list );
# &?ROUTINE.dispatcher()( self, { @t[$^a] }, @list );
}
}

Expand Down

0 comments on commit 184ff24

Please sign in to comment.