Option.defined() is unsafe

Issue #21 resolved
Jean-Baptiste Giraudeau created an issue

The signature is currently

<A> Predicate<? super A> defined()

but it is only safe if A is an Option instance.

So it should probably be changed to

<A> Predicate<Option<A>> defined()

Comments (1)

  1. Log in to comment