Skip to content

Commit 9ed183d

Browse files
committed
Add tests for RT #115280
1 parent b73dfca commit 9ed183d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

S12-class/attributes.t

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use v6;
22

33
use Test;
44

5-
plan 22;
5+
plan 24;
66

77
# L<S12/Fancy method calls/"For a call on your own private method">
88

@@ -124,4 +124,12 @@ eval_dies_ok q[
124124
isa_ok B.new.foo, A, 'class attribute can be initialized using .=';
125125
}
126126

127+
#RT #115280
128+
{
129+
eval_lives_ok '(class A { has $.x }).new.x.HOW',
130+
"HOW on attributes lives, custom class";
131+
eval_lives_ok '(1/2).numerator.HOW',
132+
"HOW on attributes lives, builtin";
133+
}
134+
127135
# vim: ft=perl6

0 commit comments

Comments
 (0)