Allow trialing comma in type list in HHVM
commit6a5d31a5919fa467f75389be2482dd79a74d3e3d
authorAmaury Sechet <amaury@fb.com>
Mon, 23 Jun 2014 17:25:03 +0000 (23 10:25 -0700)
committerfacebook-github-bot <githubbot@fb.com>
Mon, 23 Jun 2014 17:30:48 +0000 (23 10:30 -0700)
tree03039b2ef7433ad622d5b774bbba0a5024c13411
parentc61eec2e5a06e9bdab12551351eff4274258348f
Allow trialing comma in type list in HHVM

Summary: As per title. This give really confusing error messages, and is accepted by hh.

See https://www.facebook.com/groups/hackforhiphop/permalink/689199427795342/

Reviewed By: @elgenie

Differential Revision: D1393253
hphp/parser/hphp.tab.cpp
hphp/parser/hphp.y
hphp/test/slow/parser/type_list_trailing_comma.php [new file with mode: 0644]
hphp/test/slow/parser/type_list_trailing_comma.php.expect [new file with mode: 0644]