Disallow <<__Memoize>> attribute on lambdas
commit9e6cef63adf0d44d0e1e67347a81d2001a520cbf
authorVladimir Matveev <vladima@fb.com>
Thu, 31 May 2018 01:31:53 +0000 (30 18:31 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Thu, 31 May 2018 01:38:13 +0000 (30 18:38 -0700)
treeff9f47b12400f5a2c628057d7eddd6f5cb0954fa
parentc352701ab16f5ea2bfb06c43b358640299daa616
Disallow <<__Memoize>> attribute on lambdas

Summary: as in title - this is a bit that was missing when we've added support for attributes on lambdas

Reviewed By: oulgen

Differential Revision: D8156969

fbshipit-source-id: 191ea2e37f64b94f468169b18a9f8d06a9fbe304
hphp/hack/src/parser/full_fidelity_parser_errors.ml
hphp/hack/src/parser/full_fidelity_syntax_error.ml
hphp/hack/src/parser/full_fidelity_syntax_error.mli
hphp/test/slow/memoize_on_lambda1.php [new file with mode: 0644]
hphp/test/slow/memoize_on_lambda1.php.expectregex [new file with mode: 0644]
hphp/test/slow/memoize_on_lambda2.php [new file with mode: 0644]
hphp/test/slow/memoize_on_lambda2.php.expectregex [new file with mode: 0644]
hphp/test/slow/memoize_on_lambda3.php [new file with mode: 0644]
hphp/test/slow/memoize_on_lambda3.php.expectregex [new file with mode: 0644]
hphp/test/slow/memoize_on_lambda4.php [new file with mode: 0644]
hphp/test/slow/memoize_on_lambda4.php.expectregex [new file with mode: 0644]