{"action":"opened","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/3766","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/3766/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/3766/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/3766/events","html_url":"https://github.com/Microsoft/TypeScript/issues/3766","id":93524070,"number":3766,"title":"rest parametre on constructor","user":{"login":"yukulele","id":347244,"avatar_url":"https://avatars.githubusercontent.com/u/347244?v=3","gravatar_id":"","url":"https://api.github.com/users/yukulele","html_url":"https://github.com/yukulele","followers_url":"https://api.github.com/users/yukulele/followers","following_url":"https://api.github.com/users/yukulele/following{/other_user}","gists_url":"https://api.github.com/users/yukulele/gists{/gist_id}","starred_url":"https://api.github.com/users/yukulele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yukulele/subscriptions","organizations_url":"https://api.github.com/users/yukulele/orgs","repos_url":"https://api.github.com/users/yukulele/repos","events_url":"https://api.github.com/users/yukulele/events{/privacy}","received_events_url":"https://api.github.com/users/yukulele/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-07T12:52:40Z","updated_at":"2015-07-07T12:52:40Z","closed_at":null,"body":"Rest parameter don't seem to work with constructor\r\n\r\nexample:\r\n```javascript\r\nMath.max(...arr); //works\r\nmyFunction(...arr); //works\r\nnew myClass(...arr); //error\r\n```"}}