Open Iltotore opened 1 year ago
If I understand correctly, right now the snippet you shared does not evaluate at compile-time.
So, if we were to use it as an IronType
, we would necessarily have to write List(...).refine
or some equivalent method, yes?
Yes. It is currently not possible to use the compile-time conversion with such type.
The fix is simple but would introduce a pretty big compatibility break. Therefore, it will only appear when 3.0.0 will be released.
This is not possible at the moment because
Constraint#apply
's parameter is notinline
. Making itinline
would force all children to propagate make itinline
too, breaking backward compatibility.For example, this:
is not verifiable at compile-time but this will be easily doable once
value
inConstraint#apply
isinline
.