# New Ticket Created by  Moritz Lenz 
# Please include the string:  [perl #60826]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=60826 >


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

Moritz

Reply via email to