dry-rb / dry-types

Flexible type system for Ruby with coercions and constraints
https://dry-rb.org/gems/dry-types
MIT License
860 stars 134 forks source link

lax on a prepended constructor still raises #387

Closed solnic closed 4 years ago

solnic commented 4 years ago

To Reproduce

Types::Params::Date.prepend(&:first).lax[['foo']]
Dry::Types::CoercionError: invalid date

Context: https://discourse.dry-rb.org/t/coercible-types-constructors-discrepancy/983/3