Skip Menu |

This queue is for tickets about the Type-Tiny CPAN distribution.

Report information
The Basics
Id: 105022
Status: rejected
Priority: 0/
Queue: Type-Tiny

People
Owner: Nobody in particular
Requestors: MITHALDU [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: coercions fail to be executed on uncompiled type checks
I have a test script for this here: https://gist.github.com/wchristian/14e15cdc061c5d080115
The "uncompiled type check" is using the codification overload on a Type::Tiny object, which is documented to use $type->assert_return. The "compiled type check" is a compiled parameter validation sub, which can validates arguments against a signature. It is documented to apply coercions. I don't see a bug here.
Show quoted text
> The "uncompiled type check" is using the codification overload on a > Type::Tiny object, which is documented to use $type->assert_return.
There's two bugs to that then, as far as documentation goes: 1. The "Validation-and-coercion" section lacks an explicit mention of the overload behavior. 2. The "Validation-and-coercion" section lacks an explicit mention of the fact that no validation method will coerce, except for the mentioned actual coerce methods. https://metacpan.org/pod/Type::Tiny#Validation-and-coercion