Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
test for RT #76452
  • Loading branch information
moritz committed Oct 1, 2011
1 parent e0d5199 commit af1e334
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion S04-declarations/my.t
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 68;
plan 69;

#L<S04/The Relationship of Blocks and Declarations/"declarations, all
# lexically scoped declarations are visible">
Expand Down Expand Up @@ -271,4 +271,9 @@ eval_lives_ok 'my $x = 3; class A { has $.y = $x; }; say A.new.y',
'declaration of anonymous Hash';
}

# RT #76452
#?rakudo todo 'RT 76452'
eval_lives_ok 'multi f(@a) { }; multi f(*@a) { }; f(my @a = (1, 2, 3))',
'can declare a variable inside a sub call';

# vim: ft=perl6

0 comments on commit af1e334

Please sign in to comment.