Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Inner multis should hide, not conflict (S12:1077)
  • Loading branch information
sorear committed May 16, 2011
1 parent ef5b438 commit 98a4c10
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions S06-multi/lexical-multis.t
Expand Up @@ -33,12 +33,13 @@ plan 14;
eval_dies_ok(q{ bar('kava') }, 'no multi variants callable outside of lexical scope');
}

# an inner multi with a signature matching an outer will conflict
# an inner multi with a signature matching an outer will hide it
#?rakudo skip 'longname shadowing'
{
my multi baz() { 1 }
{
my multi baz() { 2 } #OK not used
dies_ok({ baz() }, 'inner multi conflicts with outer one');
lives_ok({ baz() }, 'inner multi conflicts with outer one');
}
is(baz(), 1, 'in outer scope, no inner multi, so no conflict');
}
Expand Down

0 comments on commit 98a4c10

Please sign in to comment.