Skip to content

Commit d466fc7

Browse files
committed
Add test for RT #112660
1 parent 974e459 commit d466fc7

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

S32-array/push.t

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Push tests
99
1010
=end description
1111

12-
plan 51;
12+
plan 52;
1313

1414
# basic push tests
1515
{
@@ -178,4 +178,11 @@ plan 51;
178178
"cannot push strings onto in Int array";
179179
}
180180

181+
# RT #112660
182+
{
183+
class A { has Method @.slots; };
184+
throws-like 'A.new.slots.push: [1, 2, 3]', X::TypeCheck::Assignment,
185+
'pushing non-A objects to an attribute array typed with A dies'
186+
}
187+
181188
# vim: syn=perl6

0 commit comments

Comments
 (0)