https://kotlinlang.org logo
Title
s

simon.vergauwen

05/15/2020, 4:27 PM
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.
fun <A> Arb.Companion.`null`(): Arb<A?> =
  Arb.constant(null)

fun <A> Arb<A>.nullable(): Arb<A?> =
  Arb.choice(arbs= this, Arb.`null`())
s

sam

05/15/2020, 4:54 PM
fun <A> Arb<A>.nullable(): Arb<A?> =
   Arb.choice(this, Arb.`null`())
seems to work for me
s

simon.vergauwen

05/15/2020, 5:16 PM
Not compiling for me on
4.0.5
s

sam

05/15/2020, 5:17 PM
Yeah I suppose I tried in master