Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
RT #79868, mixing into a type object
  • Loading branch information
moritz committed Apr 5, 2012
1 parent 2ac8afb commit 33dfaa3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion S14-roles/mixin.t
@@ -1,6 +1,6 @@
use v6;
use Test;
plan 28;
plan 29;

# L<S14/Run-time Mixins/>

Expand Down Expand Up @@ -131,4 +131,8 @@ is $y.test, 42, 'method from other role was OK too';
is $x(13), 546, 'can mix a &.() method into an Int';
}

# RT #79868
is (class { } but role { method answer() { 42 } }).answer, 42,
'can mix a role into a type object';

# vim: syn=perl6

0 comments on commit 33dfaa3

Please sign in to comment.