Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add test for RT #87034
  • Loading branch information
usev6 committed Nov 10, 2015
1 parent 5df60df commit dca1fae
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion S04-declarations/my.t
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 98;
plan 99;

#L<S04/The Relationship of Blocks and Declarations/"declarations, all
# lexically scoped declarations are visible">
Expand Down Expand Up @@ -172,6 +172,12 @@ throws-like 'my $z = $z', X::Syntax::Variable::Initializer, name => '$z';
is $py, 0, 'initializing a variable using a try block containing same name works';
}

# RT #87034
{
throws-like 'my @foo := 1..3, (@foo Z+ 100)',
X::Syntax::Variable::Initializer, name => '@foo';
}

# interaction of my and EVAL
# yes, it's weird... but that's the way it is
# http://irclog.perlgeek.de/perl6/2009-03-19#i_1001177
Expand Down

0 comments on commit dca1fae

Please sign in to comment.