Skip to content

Commit

Permalink
Add test for RT #65900
Browse files Browse the repository at this point in the history
  • Loading branch information
usev6 committed Oct 22, 2014
1 parent 698a635 commit 8a07d59
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion S03-binding/ro.t
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 9;
plan 11;

# L<S03/Item assignment precedence/bind and make readonly>

Expand Down Expand Up @@ -40,4 +40,12 @@ plan 9;
is @x.join(''), 'd|e|k', 'assignment relly worked';
}

# RT #65900
{
throws_like q[my $a is readonly = 5;], X::Comp::Trait::Unknown,
'variable trait "is readonly" is no longer valid (1)';
throws_like q[(my $a is readonly) = 5;], X::Comp::Trait::Unknown,
'variable trait "is readonly" is no longer valid (2)';
}

# vim: ft=perl6

0 comments on commit 8a07d59

Please sign in to comment.