pakoito
06/02/2020, 9:17 PMval oe: Eq<Option<Int>> =
instead of the inferred `OptionEq<A>`then the second line will stop workingjulian
06/02/2020, 9:43 PMval eq1 = Eq<Int> { a, b -> a == b }
val oe = Option.eq(eq1)
val eq2 = oe.EQ()
assert(eq1 === eq2) // passes
Which made me realize (duh! 😆), the eq
is the same instance that I set.pakoito
06/02/2020, 9:51 PM