Async Goes Last
commit9e91ae3dc5f5cafb2073ffc47fa0a05942410a03
authorDavid Kahn <dmkahn@fb.com>
Tue, 3 Jul 2018 21:40:26 +0000 (3 14:40 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Tue, 3 Jul 2018 21:44:01 +0000 (3 14:44 -0700)
treeef45c59ba7f141f14d6f0953507060f12e05eedb
parentd6bf73e51b338d3bacfc3d9269fa183f4bc33d60
Async Goes Last

Summary: This makes an error get thrown whenever the modifier 'async' is not immediately followed by 'function', to get back in line with previous functionality.

Reviewed By: kmeht

Differential Revision: D8717030

fbshipit-source-id: 4b73d8325a21a016e5ad417439a3282126f20153
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/hack/test/typecheck/async_last.php [new file with mode: 0644]
hphp/hack/test/typecheck/async_last.php.exp [new file with mode: 0644]
hphp/test/slow/parser/async.php