Add tests for miscellaneous validation performed during hint elaboration
commit7eaba813828045d46efb3773888cd7a5677ea3e2
authorMichael Thomas <mjt@meta.com>
Tue, 8 Nov 2022 11:52:51 +0000 (8 03:52 -0800)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Tue, 8 Nov 2022 11:52:51 +0000 (8 03:52 -0800)
tree4d3ffd005a03b153c8d57c331c2780d9b06a1023
parentefad8ad03f061d16e003907109d9bd0cedee6c48
Add tests for miscellaneous validation performed during hint elaboration

Summary:
Adds tests for miscellaneous validation performed during hint elaboration, includin:
- invalid xhp classnames
- invalid use of intenal classes (for enum classes)
- function parameter repetition

Reviewed By: andrewjkennedy

Differential Revision: D40893528

fbshipit-source-id: 63c90c853045209d62f4b6fbb0943bce7d26fd11
hphp/hack/test/nast/invalid_enum_class.php [new file with mode: 0644]
hphp/hack/test/nast/invalid_enum_class.php.exp [new file with mode: 0644]
hphp/hack/test/nast/invalid_xhp.php [new file with mode: 0644]
hphp/hack/test/nast/invalid_xhp.php.exp [new file with mode: 0644]
hphp/hack/test/nast/repetition.php [new file with mode: 0644]
hphp/hack/test/nast/repetition.php.exp [new file with mode: 0644]