Properly pass is_expr_statement
commitc0894537595e9564771b54d1f21647cf696f9b91
authorVladimir Matveev <vladima@fb.com>
Thu, 15 Nov 2018 19:52:06 +0000 (15 11:52 -0800)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Thu, 15 Nov 2018 20:27:33 +0000 (15 12:27 -0800)
treec392241a39f68e3ea289a9733cd9edc977bcd6ab
parent6a21d0e2c7ea046d44f29f89fba19f4c6c55ef94
Properly pass is_expr_statement

Summary: Propagate `is_expr_statement` to handle 'return void in rx context' case correctly when calling static methods

Reviewed By: DavidSnider

Differential Revision: D13068455

fbshipit-source-id: 821217aeb106ccbbeb452f395abf3a1955ec5a2c
hphp/hack/src/typing/typing.ml
hphp/hack/test/typecheck/reactive/returns_void_to_rx_parent1.php [new file with mode: 0644]
hphp/hack/test/typecheck/reactive/returns_void_to_rx_parent1.php.exp [new file with mode: 0644]