Fix Efuns being annotated with return type in TAST
commit81c65b7cd7538c9d78e89c68d72551426ae1fdee
authorJake Bailey <jakebailey@fb.com>
Thu, 8 Mar 2018 07:12:09 +0000 (7 23:12 -0800)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Thu, 8 Mar 2018 07:31:38 +0000 (7 23:31 -0800)
tree3b48b41e50ff2fc1d559d0b3c85325b32c1a2abb
parentbb18c68ad397b9e59d53b373f373f6289b0d998e
Fix Efuns being annotated with return type in TAST

Summary: Previously, Efuns were annotated with their return type rather than their function type in the TAST. This change annotates them with their actual type.

Reviewed By: pittsw

Differential Revision: D7184123

fbshipit-source-id: a912e2bbf02b3ac0b5bf8cba4a693ea09cd97445
hphp/hack/src/typing/typing.ml
hphp/hack/test/integration_ml/test_infer_type.ml
hphp/hack/test/tast/async_lambda.php.exp
hphp/hack/test/tast/lambda1.php.exp
hphp/hack/test/tast/lambda_contextual.php [new file with mode: 0644]
hphp/hack/test/tast/lambda_contextual.php.exp [new file with mode: 0644]
hphp/hack/test/tast/lambda_efun.php.exp