Check that ConstMaps, ImmMaps, and KeyedContainers are indexed with arraykeys (under...
commitebea8addc34ccf7526dc70e58ad2c654c322707c
authorSasha Manzyuk <manzyuk@fb.com>
Tue, 15 Oct 2019 10:57:06 +0000 (15 03:57 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 15 Oct 2019 10:59:48 +0000 (15 03:59 -0700)
treed7d1888a16b174bcbbbd382c47dd3b2f2d1a5a8a
parent5c9a12d0fd4c4492b314c0d58fe5bfecb51185a7
Check that ConstMaps, ImmMaps, and KeyedContainers are indexed with arraykeys (under disallow_invalid_arraykey)

Summary: We seem to be missing a case.

Reviewed By: kmeht

Differential Revision: D17908971

fbshipit-source-id: 28025b1e5d49a26c201dcb97e0f7aad3a66f6958
hphp/hack/src/typing/typing_array_access.ml
hphp/hack/test/typecheck/new_inference/index_array_bad.php
hphp/hack/test/typecheck/new_inference/index_array_bad.php.exp