Primary position error on enum type constant access
commit5245142f233f62c6ac15d10fe51cf1a3d61b28e0
authorMichael Thomas <mjt@fb.com>
Thu, 11 Feb 2021 15:13:15 +0000 (11 07:13 -0800)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Thu, 11 Feb 2021 15:16:48 +0000 (11 07:16 -0800)
tree9f8e23f22980302e5def46f6c3c47708b18abca9
parenta3a00599788066625b3e49f346daaf99ff58a0e9
Primary position error on enum type constant access

Summary: The primary and secondary error positions appear to have been mixed up within the error generation when expanding type constant access

Reviewed By: madgen

Differential Revision: D26400354

fbshipit-source-id: f4f49ceafa7b9cdad70e2ef52eddd7bc26777375
hphp/hack/src/typing/typing_taccess.ml
hphp/hack/test/typecheck/coeffects/varray_darray_const_ctx_bad.php.exp
hphp/hack/test/typecheck/enum/bad/enum_type_constant.php [new file with mode: 0644]
hphp/hack/test/typecheck/enum/bad/enum_type_constant.php.exp [new file with mode: 0644]
hphp/hack/test/typecheck/nonnull/accessing_type_constant_of_nonnull.php.exp
hphp/hack/test/typecheck/tconst/access_expand_error_1.php.exp
hphp/hack/test/typecheck/tconst/disallow_access_on_nullable.php.exp