Skip to content

Commit

Permalink
test for RT #77274, class inherits from parent and then grandparent
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Jan 6, 2012
1 parent d3006fd commit e60e835
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion S12-class/mro.t
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 3;
plan 4;

{
class A {
Expand Down Expand Up @@ -32,3 +32,11 @@ plan 3;
dies_ok { eval 'class confused is vh is hv { }' },
'Cannot do multi inheritance that causes inconsistent MRO';
}

# RT #77274
eval_lives_ok q[
class GrandParent { };
class Parent is GrandParent { };
class Me is Parent is GrandParent { };
Me.new;
], 'a class can inherit both from its parent and then from its grand parent';

0 comments on commit e60e835

Please sign in to comment.