instead of the inferred `OptionEq<A>`then the second line will stop working
j
julian
06/02/2020, 9:43 PM
Thanks @pakoito.
Turning on type hints definitely helped.
After thinking about what you wrote, and taking a closer look at the Arrow library code, I tried this:
Copy code
val eq1 = Eq<Int> { a, b -> a == b }
val oe = Option.eq(eq1)
val eq2 = oe.EQ()
assert(eq1 === eq2) // passes