Navigation Menu

Skip to content

Commit

Permalink
Test for RT #127665.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Mar 9, 2016
1 parent af717d6 commit a20b3a4
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion S12-attributes/instance.t
Expand Up @@ -2,7 +2,7 @@ use v6;

use Test;

plan 150;
plan 152;

=begin pod
Expand Down Expand Up @@ -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

0 comments on commit a20b3a4

Please sign in to comment.