Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
check for anonymous &, too.
  • Loading branch information
timo committed Jan 13, 2013
1 parent b905097 commit 055cb13
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion S04-declarations/my.t
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 74;
plan 75;

#L<S04/The Relationship of Blocks and Declarations/"declarations, all
# lexically scoped declarations are visible">
Expand Down Expand Up @@ -307,8 +307,10 @@ eval_lives_ok 'multi f(@a) { }; multi f(*@a) { }; f(my @a = (1, 2, 3))',
{
my @ = 1, 2, 3;
my % = a => 1, b => 2, c => 3;
my & = { * - 5 };
is my @, Array.new, q{anonymous @ doesn't overshare};
is my %, ().hash, q{anonymous % doesn't overshare};
is my &, Any, q{anonymous & doesn't overshare};
}

# vim: ft=perl6

0 comments on commit 055cb13

Please sign in to comment.