Any reason why `fun <A : Any> Arb.Companion....
# kotest
d
Any reason why
fun <A : Any> Arb.Companion.choose(a: Pair<Int, A>, b: Pair<Int, A>, vararg cs: Pair<Int, A>): Arb<A>
is
A: Any
? It seems like it can't choose from a null?
s
The signature is not null. You must have a null in one of your input arbs
d
Yeah, that's what I want...
Wondering why it can't just be <A : Any?>
s
Erm, yeah I guess it could be
not sure the Any is needed
d
In a sense, someone not paying attention could shoot themselves in the foot without it.. getting unexpected nulls. But then, any property testing that isn't well planned is dangerous...
s
d
Great, thanks!