Skip to content

Commit d6631bb

Browse files
committed
[subtypes] Test for RT 78318
1 parent 84eeb91 commit d6631bb

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

S12-subset/subtypes.t

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,16 @@ ok "x" !~~ NW1, 'subset declaration without where clause rejects wrong value';
180180
lives_ok { T.new( small => 2 ) }, 'my subset type enforced as attribute in new() (2)';
181181
}
182182

183+
# RT #78318
184+
{
185+
my @*rt78318;
186+
subset Bug of Int where { @*rt78318.push( 'bug' ) };
187+
subset Hunt of Bug where { @*rt78318.push( 'hunt' ) };
188+
78318 ~~ Hunt;
189+
#?rakudo todo 'RT 78318'
190+
is @*rt78318, <bug hunt>, 'code called when subtype built on subtype';
191+
}
192+
183193
done_testing;
184194

185195
# vim: ft=perl6

0 commit comments

Comments
 (0)