Class const declarator lists
commitbe760680528d3c3ed9160568f0da372dcec2bf2e
authorJake Bailey (Hacklang) <jakebailey@fb.com>
Mon, 21 Sep 2020 20:10:12 +0000 (21 13:10 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Mon, 21 Sep 2020 20:12:44 +0000 (21 13:12 -0700)
tree33fa79569aafbb7cd8b6177a61d0675f7ff72d01
parente0a5092c55b0470b9557e5ce38b611638f89cdd6
Class const declarator lists

Summary: Class const declarators can have a list of several constants of the same type. Our const handling code currently assumes only one--this diff handles the case where there are more.

Reviewed By: shiqicao

Differential Revision: D23722129

fbshipit-source-id: 068c8bc4ec3c7f3e4f35f47c1890b97e5d161ae6
hphp/hack/src/decl/direct_decl_smart_constructors.rs
hphp/hack/test/decl/class_const_declarator_list.php [new file with mode: 0644]
hphp/hack/test/decl/class_const_declarator_list.php.exp [new file with mode: 0644]
hphp/hack/test/decl/class_const_declarator_list.php.typecheck.exp [new file with mode: 0644]