A generic type parameter is a subtype of mixed
Summary: This is similar to
D9148257 but for generic type parameters. To be able to satisfy the constraint `T <: t`, where `t` is equivalent to but syntactically different from `mixed = ?nonnull` (e.g., `t` is a type parameter `T'` constrained using `super nonnull`), I'm suggesting to add `?nonnull` as an implicit upper bound to `T`. The preserve the error messages I'm suggesting to try this implicit bound immediately before giving up having exhausted the list of explicit upper bounds.
Reviewed By: andrewjkennedy
Differential Revision:
D9148258
fbshipit-source-id:
71b2926bd1956a4fc02a6c909ef9da5754d6c601