Ban variadic arguments on __Memoize functions
commit9b0ea1484cd1ad69936f8efeb85cf770f879f218
authorWilfred Hughes <wilfred@fb.com>
Fri, 15 May 2020 19:21:32 +0000 (15 12:21 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Fri, 15 May 2020 19:23:56 +0000 (15 12:23 -0700)
tree4708b93639e6581074146364c255ae883cffdbec
parent8848a578a78f2dd13e12668e80b03e27014e8191
Ban variadic arguments on __Memoize functions

Summary: HHVM rejects these, so hh should reject them too.

Differential Revision: D21565388

fbshipit-source-id: 148c1db29aa4981ec0b19744adf986e71fff96b5
hphp/hack/src/errors/error_codes.ml
hphp/hack/src/errors/errors.ml
hphp/hack/src/errors/errors.mli
hphp/hack/src/typing/nast_check/attribute_arity_check.ml
hphp/hack/test/errors/error_map.ml
hphp/hack/test/typecheck/attributes/memoize_lsb_variadic.php [new file with mode: 0644]
hphp/hack/test/typecheck/attributes/memoize_lsb_variadic.php.exp [new file with mode: 0644]
hphp/hack/test/typecheck/memoize/varargs.php.exp