refined
refined copied to clipboard
Fix case when numeric inference kicks out before minimal tautology inference
Attempt to address https://github.com/fthomas/refined/issues/613.
Basically, numeric inference kicks in before minimal tautology.
scala> implicitly[Inference[Positive And Less[10], Positive]]
val res0: /* ... */ = Inference(false,conjunctionEliminationL(greaterInferenceNat(0, 0)))
or even simpler:
scala> implicitly[Inference[Positive, Positive]]
val res1: /* ... */ = Inference(false,greaterInferenceNat(0, 0))
Codecov Report
Merging #894 (3d1b04c) into master (ac4a55f) will not change coverage. The diff coverage is
n/a
.
@@ Coverage Diff @@
## master #894 +/- ##
=======================================
Coverage 91.52% 91.52%
=======================================
Files 48 48
Lines 531 531
Branches 12 8 -4
=======================================
Hits 486 486
Misses 45 45
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update ac4a55f...3d1b04c. Read the comment docs.