Subject: | Inherited coercions have too high priority |
I'm having an issue with my Type::Tiny type library.
I have a type defined as a hashref with certain keys, defined with the Dict type. Some of those keys have their own types, with coercions, so i added coercion => 1 to the declaration of my type.
Now, I want to add a coercion to my type of hashref from a hashref with different keys. My coercion fails, b/c the inherited coercions are happening before the one that I defined myself.
Is this intended? If so, how can I work around the issue?