Skip to content

Commit a677cbb

Browse files
committed
RT #101022, mixing a role into True
1 parent 2ffae45 commit a677cbb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

S14-roles/mixin.t

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use v6;
22
use Test;
3-
plan 29;
3+
plan 30;
44

55
# L<S14/Run-time Mixins/>
66

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

138+
# RT #101022
139+
lives_ok {(True but role {}).gist}, 'can mix into True';
140+
138141
# vim: syn=perl6

0 commit comments

Comments
 (0)