Damn, `choose` constrains to `Any` :smile:
# kotest
s
Damn,
choose
constrains to
Any
😄
I’m experiencing a weird issue with
Arb.Companion.choice
. The deprecated method conflicts with new method, and if I try to specify with named arguments
arbs
I get this error.
Copy code
fun <A> Arb.Companion.`null`(): Arb<A?> =
  Arb.constant(null)

fun <A> Arb<A>.nullable(): Arb<A?> =
  Arb.choice(arbs= this, Arb.`null`())
s
Copy code
fun <A> Arb<A>.nullable(): Arb<A?> =
   Arb.choice(this, Arb.`null`())
seems to work for me
s
Not compiling for me on
4.0.5
s
Yeah I suppose I tried in master