Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[t] Tests for multi-part namespaces and inheritance.
  • Loading branch information
jnthn committed Nov 21, 2010
1 parent 50b66ab commit 9ae5e09
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions t/nqp/28-subclass.t
Expand Up @@ -37,3 +37,12 @@ say( $xyzhow.isa($xyz, Mu) ?? 'ok 7' !! 'not ok 7' );

# inherits the Str method from Mu
say( XYZ.Str eq 'XYZ()' ?? 'ok 8' !! 'not ok 8' );

class Multi::Part {
method x() { say('ok 9'); }
}
class Another::Multi::Part is Multi::Part {
method y() { say('ok 10'); }
}
Another::Multi::Part.x();
Another::Multi::Part.y();

0 comments on commit 9ae5e09

Please sign in to comment.