You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
type PositiveInt = Int Refined Positive
type PositiveAndLessTenInt = Int Refined (Positive And Less[W.`10`.T])
var foo: PositiveInt = 1
val bar: PositiveAndLessTenInt = 5
foo = bar
This produces error:
type mismatch;
found : Playground.this.PositiveAndLessTenInt
(which expands to) eu.timepit.refined.api.Refined[Int,eu.timepit.refined.boolean.And[eu.timepit.refined.numeric.Greater[shapeless._0],eu.timepit.refined.numeric.Less[Int(10)]]]
required: Playground.this.PositiveInt
(which expands to) eu.timepit.refined.api.Refined[Int,eu.timepit.refined.numeric.Greater[shapeless._0]]
The text was updated successfully, but these errors were encountered:
x0ji0d
changed the title
Numeric conversion for types with several predicates does not work
Conversion for types with several predicates does not work
Feb 3, 2019
This produces error:
The text was updated successfully, but these errors were encountered: