Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
RT #101022, mixing a role into True
  • Loading branch information
moritz committed Apr 22, 2012
1 parent 2ffae45 commit a677cbb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion S14-roles/mixin.t
@@ -1,6 +1,6 @@
use v6;
use Test;
plan 29;
plan 30;

# L<S14/Run-time Mixins/>

Expand Down Expand Up @@ -135,4 +135,7 @@ is $y.test, 42, 'method from other role was OK too';
is (class { } but role { method answer() { 42 } }).answer, 42,
'can mix a role into a type object';

# RT #101022
lives_ok {(True but role {}).gist}, 'can mix into True';

# vim: syn=perl6

0 comments on commit a677cbb

Please sign in to comment.