[perl #132980] Coercion type apparently does not check the actual type of the coerced value

2018-06-17 Thread Zoffix Znet via RT
Re-opening this, as there's a much more common case where a typecheck of the coercion result would be desired and that's when coercion results in a Failure: m: multi sub foo(Int() $) { }; foo Inf rakudo-moar 5a6ff4073: ( no output )

[perl #132980] Coercion type apparently does not check the actual type of the coerced value

2018-06-17 Thread Zoffix Znet via RT
Re-opening this, as there's a much more common case where a typecheck of the coercion result would be desired and that's when coercion results in a Failure: m: multi sub foo(Int() $) { }; foo Inf rakudo-moar 5a6ff4073: ( no output )