Handle class names that collide with builtins
commit8e7fdcb90443663a63ef17ed479d16f443921735
authorVladimir Matveev <vladima@fb.com>
Tue, 3 Oct 2017 21:48:33 +0000 (3 14:48 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Tue, 3 Oct 2017 22:07:38 +0000 (3 15:07 -0700)
tree353bd8c0f1fd4ee734f9db97da63e8323ec0f52e
parenta51a4e860439a31dc080c7aa2f3a142dc370fb88
Handle class names that collide with builtins

Summary: This situation was already incorrect and reported as error during typechecking, now it exposed as codegen fatal

Reviewed By: oulgen

Differential Revision: D5966115

fbshipit-source-id: 410fd7013c3a6bf7bc3c0d9a6af362b586eeaddb
15 files changed:
hphp/hack/src/hhbc/closure_convert.ml
hphp/hack/src/hhbc/emit_class.ml
hphp/hack/src/naming/namingGlobal.ml
hphp/hack/src/naming/naming_special_names.ml
hphp/hack/src/parser/full_fidelity_ast.ml
hphp/hack/src/parser/namespaces.ml
hphp/hack/src/parser/namespaces.mli
hphp/hack/src/parser/parser_hack.ml
hphp/hack/test/incremental/test_inconsistent_state.ml
hphp/hack/test/incremental/test_method_override.ml
hphp/hack/test/typecheck/tconst/cannot_override_tconst.php
hphp/hack/test/typecheck/tconst/cannot_override_tconst.php.exp
hphp/hack/test/typecheck/trait_require_inherit.php
hphp/test/hhcodegen_failing_tests_quick
hphp/test/hhcodegen_failing_tests_slow