Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Signature binding outside of routine calls
  • Loading branch information
ivanoff committed Aug 11, 2013
1 parent 9410964 commit 03e0f30
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions S06-signature/outside-subroutine.t
@@ -0,0 +1,21 @@
use v6;

use Test;

=begin desc
Signature binding outside of routine calls
RT #82946
=end desc

plan 2;

my ($f, $o, @a);
@a = 2, 3, 4;
:($f, $o, $) := @a;

is $f, 2, 'f eq 2 after binding';
is $o, 3, 'o eq 3 after binding';

# vim: ft=perl6

0 comments on commit 03e0f30

Please sign in to comment.