On Thu Oct 16 02:51:19 2014, [email protected] wrote:
> But before adding tests I wonder whether the where clause has any
> effect. Shouldn't the following complain that $.color is restricted to
> values 1 and 2?
> 
> $ perl6 -e 'class A { has Int $.color where 1|2 }; my $a = A.new(
> color => 3 ); say $a;'
> A.new(color => 3)

I found ticket 122109 (https://rt.perl.org/Ticket/Display.html?id=122109) which 
is a about where clauses on attributes NYI.

So I added a test for this ticket to S12-class/attributes.t with the following 
commit: https://github.com/perl6/roast/commit/cc6dfe8bd8. I'm closing this 
ticket now.

Reply via email to