non_null does intersection with Tnonnull
commit2ab4f6d7cc5e349a26489a0b1382cad3f43e1892
authorCatherine Gasnier <catg@fb.com>
Fri, 15 Nov 2019 14:58:18 +0000 (15 06:58 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 15 Nov 2019 15:00:26 +0000 (15 07:00 -0800)
tree530a966c14fe2ba4bf6535998473fcec72e6df63
parent8518a91f91466a565caa695287dc8ca07a3cb41f
non_null does intersection with Tnonnull

Summary: Allows to clean up `push_option_out`.

Reviewed By: andrewjkennedy

Differential Revision: D17342028

fbshipit-source-id: e0d24e1fe7180eb7381470c435f5e01ede6cc2aa
14 files changed:
hphp/hack/src/typing/tast_utils.ml
hphp/hack/src/typing/type_mapper.ml
hphp/hack/src/typing/typing.ml
hphp/hack/src/typing/typing_coercion.ml
hphp/hack/src/typing/typing_solver.ml
hphp/hack/src/typing/typing_solver.mli
hphp/hack/test/integration_ml/test_infer_type.ml
hphp/hack/test/tast/array_filter.php.exp
hphp/hack/test/typecheck/array_filter.php.exp
hphp/hack/test/typecheck/array_filter.php.like_types.exp
hphp/hack/test/typecheck/hh_fixme_disjunction.php
hphp/hack/test/typecheck/hh_fixme_disjunction.php.exp
hphp/hack/test/typecheck/new_inference/lambda_as_param.php [new file with mode: 0644]
hphp/hack/test/typecheck/new_inference/lambda_as_param.php.exp [new file with mode: 0644]