On Tue Nov 25 13:56:09 2008, moritz wrote:
> Rakudo r33193:
> 
> > my $x = 5; subset MyInt of Int where { $^num % $x == 0};  my MyInt $a
> = 10; say $a;
> Type mismatch in assignment.
> 
> If I use a constant instead of the lexical $x, it works just fine.
> 
> There's a test for that in t/spec/S12-subset/subtypes.t
> 
This is working in current Rakudo. I unfudged the tests, and also stuck
in a couple of parens to one of them, since we don't currently parse
item assignment right and it was getting in the way of passing it. So,
resolving the ticket.

Thanks!

Jonathan

Reply via email to