easy: parse error for "abstract async"
commit166da944af57a40a6ecb5b821fcbe53bb0e80cfe
authorEugene Letuchy <eletuchy@fb.com>
Tue, 15 Oct 2013 03:37:38 +0000 (14 20:37 -0700)
committerSara Golemon <sgolemon@fb.com>
Wed, 16 Oct 2013 16:31:24 +0000 (16 09:31 -0700)
tree97783d938c77211f8f1125e6a29000d0fe2c3f7c
parentdc12168af01043b33cabd1fce7ed4f1863ea8390
easy: parse error for "abstract async"

async is meaningless in an abstract context, since it
 modifies the meaning of the method body.

Reviewed By: @jano

Differential Revision: D1011051
hphp/compiler/statement/method_statement.cpp
hphp/runtime/base/strings.h
hphp/test/slow/parser/async_bad_class.php [new file with mode: 0644]
hphp/test/slow/parser/async_bad_class.php.expectf [new file with mode: 0644]
hphp/test/slow/parser/async_bad_if.php [new file with mode: 0644]
hphp/test/slow/parser/async_bad_if.php.expectf [new file with mode: 0644]
hphp/test/slow/parser/async_bad_tr.php [new file with mode: 0644]
hphp/test/slow/parser/async_bad_tr.php.expectf [new file with mode: 0644]