{"action":"opened","issue":{"url":"https://api.github.com/repos/facebook/hhvm/issues/6199","labels_url":"https://api.github.com/repos/facebook/hhvm/issues/6199/labels{/name}","comments_url":"https://api.github.com/repos/facebook/hhvm/issues/6199/comments","events_url":"https://api.github.com/repos/facebook/hhvm/issues/6199/events","html_url":"https://github.com/facebook/hhvm/issues/6199","id":104995037,"number":6199,"title":"Cannot have trailing commas in tuples in generic parameters","user":{"login":"simonwelsh","id":125915,"avatar_url":"https://avatars.githubusercontent.com/u/125915?v=3","gravatar_id":"","url":"https://api.github.com/users/simonwelsh","html_url":"https://github.com/simonwelsh","followers_url":"https://api.github.com/users/simonwelsh/followers","following_url":"https://api.github.com/users/simonwelsh/following{/other_user}","gists_url":"https://api.github.com/users/simonwelsh/gists{/gist_id}","starred_url":"https://api.github.com/users/simonwelsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonwelsh/subscriptions","organizations_url":"https://api.github.com/users/simonwelsh/orgs","repos_url":"https://api.github.com/users/simonwelsh/repos","events_url":"https://api.github.com/users/simonwelsh/events{/privacy}","received_events_url":"https://api.github.com/users/simonwelsh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-05T01:32:57Z","updated_at":"2015-09-05T01:32:57Z","closed_at":null,"body":"```hack\r\n<?hh\r\n\r\nfunction foo(): ConstVector<(\r\n    string,\r\n    int,\r\n)> {}\r\n```\r\ngives `Fatal error: syntax error, unexpected '<', expecting ';' or '{' in /in/UvWrJ on line 3`\r\n\r\nHowever, both:\r\n```hack\r\n<?hh\r\n\r\nfunction foo(): (\r\n    string,\r\n    int,\r\n) {}\r\n```\r\n(just a tuple, with trailing comma) and\r\n```hack\r\n<?hh\r\n\r\nfunction foo(): ConstVector<(\r\n    string,\r\n    int\r\n)> {}\r\n```\r\n(tuple inside generics, without a trailing comma) are valid."}}