test case for yielding a readonly key
commit6a70b7e8d18e2b12a313d8e54e059b38598d6506
authorMax Heiber <mheiber@fb.com>
Mon, 8 Aug 2022 18:44:09 +0000 (8 11:44 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Mon, 8 Aug 2022 18:44:09 +0000 (8 11:44 -0700)
tree7461aa8b60dcdfc46b53a737e87a94ca00369e5b
parent519ee4e81b4e0e0cfd82542e4b08461153da00e6
test case for yielding a readonly key

Summary: Test case to ensure that we do readonly checking for the *key* in a yield expression

Reviewed By: jamesjwu

Differential Revision: D38491269

fbshipit-source-id: d06eb007fbc1326917226d2bf154c9fa7a05cec4
hphp/hack/test/typecheck/readonly/yield_expression_key.php [new file with mode: 0644]
hphp/hack/test/typecheck/readonly/yield_expression_key.php.exp [new file with mode: 0644]