> On 06 May 2015, at 22:15, Christian Bartolomaeus (via RT) 
> <[email protected]> wrote:
> 
> # New Ticket Created by  Christian Bartolomaeus 
> # Please include the string:  [perl #125123]
> # in the subject line of all future correspondence about this issue. 
> # <URL: https://rt.perl.org/Ticket/Display.html?id=125123 >
> 
> 
> Two tests in S02-types/array-shapes.t fail, because pushing a string to a 
> typed array of type 'int' dies with X::AdHoc instead of X::TypeCheck:
> 
> $ perl6-m -e 'my int @a; push @a, "s"'
> This type cannot unbox to a native integer
>  in block <unit> at -e:1

This is because it physically doesn’t fit.


> $ perl6-m -e 'my Int @a; push @a, "s"'
> Type check failed in .push; expected 'Int' but got 'Str'
>  in block <unit> at -e:1

This is because we don’t let it in.


Perhaps the wording of the former can be changed?



Liz

Reply via email to