Add parser errors when reified params are shadowed
commitfdc438954eec20cec0134cf049b572c36453545d
authorOguz Ulgen <oulgen@fb.com>
Tue, 31 Jul 2018 21:23:40 +0000 (31 14:23 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Tue, 31 Jul 2018 21:27:57 +0000 (31 14:27 -0700)
treeb2414df1b9dc81193ecb207d088c25ddd6f8c09d
parenta93743d424a090ffe31da1a343c6707dfc871748
Add parser errors when reified params are shadowed

Summary: This diff adds parser errors for when reified params are shadowed. It does not touch erased generics as they are used in www and we dont want to error on them just yet.

Reviewed By: jamesjwu

Differential Revision: D9073391

fbshipit-source-id: 12e305be63c0def3281e5de21b7a1e5c0c6714b5
hphp/hack/src/parser/full_fidelity_parser_errors.ml
hphp/hack/src/parser/full_fidelity_syntax_error.ml
hphp/hack/src/parser/full_fidelity_syntax_error.mli
hphp/test/slow/reified_generics/shadowing-reified-param-between-class-and-function.php [new file with mode: 0644]
hphp/test/slow/reified_generics/shadowing-reified-param-between-class-and-function.php.expectf [new file with mode: 0644]
hphp/test/slow/reified_generics/shadowing-reified-param-class.php [new file with mode: 0644]
hphp/test/slow/reified_generics/shadowing-reified-param-class.php.expectf [new file with mode: 0644]
hphp/test/slow/reified_generics/shadowing-reified-param-function.php [new file with mode: 0644]
hphp/test/slow/reified_generics/shadowing-reified-param-function.php.expectf [new file with mode: 0644]
hphp/test/slow/reified_generics/shadowing-reified-param-method.php [new file with mode: 0644]
hphp/test/slow/reified_generics/shadowing-reified-param-method.php.expectf [new file with mode: 0644]