Skip to content

Commit

Permalink
Test that re-declaring constants dies
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Feb 26, 2015
1 parent 1cd6489 commit 951c24e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions S04-declarations/constant.t
Original file line number Diff line number Diff line change
Expand Up @@ -324,9 +324,6 @@ plan 56;
{
constant True = 42;
is True, 42, 'can locally redefine True';
constant True = "Yeah, well, you know, that's just, like, your opinion, man.";
is True, "Yeah, well, you know, that's just, like, your opinion, man.",
'can even locally redefine True to something a bit vague';
}

# RT #114506
Expand All @@ -339,4 +336,7 @@ plan 56;
is Ticket.val, "dot-equals assignment", ".= new initialization on constants works";
}

throws_like q[constant Mouse = Rat; constant Mouse = Rat], X::Redeclaration,
symbol => 'Mouse';

# vim: ft=perl6

0 comments on commit 951c24e

Please sign in to comment.