Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
test for augment on lexical class, RT #74910
  • Loading branch information
moritz committed Nov 27, 2011
1 parent f75b379 commit 5af9d23
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion S12-class/augment-supersede.t
Expand Up @@ -2,7 +2,7 @@ use v6;

use Test;

plan 9;
plan 10;

# L<S12/"Open vs Closed Classes"/"Otherwise you'll get a class redefinition error.">

Expand All @@ -24,6 +24,13 @@ use MONKEY_TYPING;
'augment on non-existent class dies';
}

# RT #74910
{
my class LexFoo { };
augment class LexFoo { method b { 'called LexFoo.b' } };
is LexFoo.b, 'called LexFoo.b', 'can augment lexical class';
}

# RT #76104
{
augment class Hash {
Expand Down

0 comments on commit 5af9d23

Please sign in to comment.