diff --git a/S12-attributes/instance.t b/S12-attributes/instance.t index 9b6b8c0f66..c71c75ff8f 100644 --- a/S12-attributes/instance.t +++ b/S12-attributes/instance.t @@ -2,7 +2,7 @@ use v6; use Test; -plan 150; +plan 152; =begin pod @@ -716,4 +716,14 @@ throws-like q[class RT74274 { has $!a }; my $a = RT74274.new(a => 42); ; } +# RT #127665 +{ + my class A { + has $.x is rw; + has $.y; + } + ok A.^lookup('x').rw, 'is rw accessor method marked rw'; + nok A.^lookup('y').rw, 'readonly accessor method not marked rw'; +} + # vim: ft=perl6