Global fallback for constants
commitafb4ce76bc129d71680f98a36c55e66f809ad126
authorJosh Watzman <jwatzman@fb.com>
Wed, 21 May 2014 17:15:17 +0000 (21 10:15 -0700)
committerJoelMarcey <joelm@fb.com>
Thu, 22 May 2014 18:15:25 +0000 (22 11:15 -0700)
tree9b3a5751df237c6b6e93386dda9ae999d0d9c9c3
parentc3c5f7ba67612bfdaa88a851a5a45b3b6c72d93c
Global fallback for constants

Summary: Same as global fallback for functions, I'm not sure this
behavior totally makes sense, but it's what PHP does.

Fixes #2565

Reviewed By: @pikatchu

Differential Revision: D1337954
hphp/hack/src/deps/typing_deps.ml
hphp/hack/src/js/typing_deps.ml
hphp/hack/src/naming/naming.ml
hphp/hack/src/typing/typing_compare.ml
hphp/hack/src/typing/typing_redecl_service.ml
hphp/hack/test/typecheck/namespace_global_const1.php [new file with mode: 0644]
hphp/hack/test/typecheck/namespace_global_const1.php.exp [new file with mode: 0644]
hphp/hack/test/typecheck/namespace_global_const2.php [new file with mode: 0644]
hphp/hack/test/typecheck/namespace_global_const2.php.exp [new file with mode: 0644]