Skip to content

Commit

Permalink
Fix and unfudge test for RT #125068
Browse files Browse the repository at this point in the history
direct lookup of 'our sub' needs sigil '&'
  • Loading branch information
usev6 committed May 25, 2015
1 parent 48fb065 commit ac62893
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions S04-declarations/my.t
Expand Up @@ -254,16 +254,15 @@ my $z = 42; #OK not used
}

# used to be RT #76366, #76466
#?rakudo skip 'nom regression, OUR:: RT #125068'
{
nok OUR::access_lexical_a().defined,
nok &OUR::access_lexical_a().defined,
'can call our-sub that accesses a lexical before the block was run';
{
my $a = 42;
our sub access_lexical_a() { $a }
}
#?niecza todo 'NYI'
is OUR::access_lexical_a(), 42,
is &OUR::access_lexical_a(), 42,
'can call our-sub that accesses a lexical after the block was run';

}
Expand Down

0 comments on commit ac62893

Please sign in to comment.