Add tests for invalid uses of `this` type hint
commit8d8c8095c60fe68df0b3c5dcb895ee9579a29a9c
authorMichael Thomas <mjt@meta.com>
Sun, 6 Nov 2022 17:44:29 +0000 (6 09:44 -0800)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Sun, 6 Nov 2022 17:44:29 +0000 (6 09:44 -0800)
tree77a28f51a5a0bdd41032e62c46386dc0e29c51af
parentc46c4dbfdc8d28118bbbd9fe0715ec707408b251
Add tests for invalid uses of `this` type hint

Summary: Adds tests for validation of `this` type hints.

Reviewed By: andrewjkennedy

Differential Revision: D40757738

fbshipit-source-id: 56321669efc90a1e3d83a7164a15e6b29b24ae01
hphp/hack/test/nast/this_class_tparam_bound.php [new file with mode: 0644]
hphp/hack/test/nast/this_class_tparam_bound.php.exp [new file with mode: 0644]
hphp/hack/test/nast/this_hint_outside_class.php [new file with mode: 0644]
hphp/hack/test/nast/this_hint_outside_class.php.exp [new file with mode: 0644]
hphp/hack/test/nast/this_lsb_static_prop.php [new file with mode: 0644]
hphp/hack/test/nast/this_lsb_static_prop.php.exp [new file with mode: 0644]
hphp/hack/test/nast/this_static_prop.php [new file with mode: 0644]
hphp/hack/test/nast/this_static_prop.php.exp [new file with mode: 0644]