Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
test for RT #76270, named class declaration should return the class
  • Loading branch information
moritz committed Oct 20, 2011
1 parent ea311cc commit 15664cb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion S12-class/basic.t
Expand Up @@ -2,7 +2,7 @@ use v6;

use Test;

plan 35;
plan 36;

=begin pod
Expand Down Expand Up @@ -131,4 +131,10 @@ eval_dies_ok 'class WritableSelf { method f { self = 5 } }; WritableSelf.new.f',
# RT 65022
eval_lives_ok 'class Test1 { class A {};}; class Test2 {class A {};};',
'RT65022 - Nested classes in different classes can have the same name';

# RT #76270
{
my $x = class Named { };
isa_ok $x, Named, 'named class declaration returns the class object';
}
# vim: ft=perl6

0 comments on commit 15664cb

Please sign in to comment.