Skip to content

Commit

Permalink
Update use of multi to include proto declaration.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmichaud committed Jun 28, 2011
1 parent fb3efa1 commit 7fa87bc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions S02-builtin_data_types/anon_block.t
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ isnt((sub { -> { 3 } }).(), 3, 'as are pointies');
is (sub (&x) { &x() }).( &rt68116 ), 68116,
'call via (sub (&x) { &x() }).( &s ) works for sub';

proto mone(|$) { * }
multi mone { 'one' }
is &mone(), 'one', 'check that mutli is callable via &';
is { &^x() }.( &mone ), 'one',
Expand Down

0 comments on commit 7fa87bc

Please sign in to comment.