Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Check that after mixing the role nqp::istype works with the old type.
  • Loading branch information
pmurias committed Sep 9, 2013
1 parent 8ed7dad commit 56ce7c4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion t/nqp/61-mixin.t
@@ -1,4 +1,4 @@
plan(6);
plan(7);

role TheRole {
has $!a;
Expand All @@ -20,6 +20,8 @@ ok($obj_m.override_me() eq "class method", "sanity (2)");

$obj_m.HOW.mixin($obj_m, TheRole);

ok(nqp::istype($obj_m, TheRole),"after mixing in a role the object is still the old type");

ok($obj_m.role_meth() eq "called role method", "role method mxied in");

$obj_m.set_attr("stout");
Expand Down

0 comments on commit 56ce7c4

Please sign in to comment.