Browse files

[t/spec] tests for RT #72856 Null PMC access when two methods from di…

…fferent roles collide in a class composition in Rakudo

git-svn-id: http://svn.pugscode.org/pugs@31492 c213334d-75ef-0310-aa23-eaa082d1ae64
  • Loading branch information...
1 parent e70afa0 commit 095ac1f67aa5a701ab62c016ba2020db1ca7a5e1 bbkr committed Jun 28, 2010
Showing with 9 additions and 1 deletion.
  1. +9 −1 S14-roles/composition.t
View
10 S14-roles/composition.t
@@ -1,6 +1,6 @@
use v6;
use Test;
-plan 22;
+plan 23;
# L<S14/Roles/"Roles may be composed into a class at compile time">
@@ -107,6 +107,14 @@ ok rB !~~ RT64002, 'role not matched by second role it does';
}
+# RT #72856
+{
+ role RT72856A { method foo {} };
+ role RT72856B { method foo {} };
+ eval 'class RT72856C does RT72856A does RT72856B {}';
+ ok $! ~~ /foo .* collides/,
+ 'method of the same name from two different roles collide in a class composition';
+}
done_testing;

0 comments on commit 095ac1f

Please sign in to comment.