{"action":"closed","issue":{"url":"https://api.github.com/repos/decaffeinate/decaffeinate/issues/527","repository_url":"https://api.github.com/repos/decaffeinate/decaffeinate","labels_url":"https://api.github.com/repos/decaffeinate/decaffeinate/issues/527/labels{/name}","comments_url":"https://api.github.com/repos/decaffeinate/decaffeinate/issues/527/comments","events_url":"https://api.github.com/repos/decaffeinate/decaffeinate/issues/527/events","html_url":"https://github.com/decaffeinate/decaffeinate/issues/527","id":188203750,"number":527,"title":"Destructuring Assignments to already declared variables as last statement of function crashes","user":{"login":"marcmenn","id":3729080,"avatar_url":"https://avatars.githubusercontent.com/u/3729080?v=3","gravatar_id":"","url":"https://api.github.com/users/marcmenn","html_url":"https://github.com/marcmenn","followers_url":"https://api.github.com/users/marcmenn/followers","following_url":"https://api.github.com/users/marcmenn/following{/other_user}","gists_url":"https://api.github.com/users/marcmenn/gists{/gist_id}","starred_url":"https://api.github.com/users/marcmenn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcmenn/subscriptions","organizations_url":"https://api.github.com/users/marcmenn/orgs","repos_url":"https://api.github.com/users/marcmenn/repos","events_url":"https://api.github.com/users/marcmenn/events{/privacy}","received_events_url":"https://api.github.com/users/marcmenn/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"alangpierce","id":211605,"avatar_url":"https://avatars.githubusercontent.com/u/211605?v=3","gravatar_id":"","url":"https://api.github.com/users/alangpierce","html_url":"https://github.com/alangpierce","followers_url":"https://api.github.com/users/alangpierce/followers","following_url":"https://api.github.com/users/alangpierce/following{/other_user}","gists_url":"https://api.github.com/users/alangpierce/gists{/gist_id}","starred_url":"https://api.github.com/users/alangpierce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alangpierce/subscriptions","organizations_url":"https://api.github.com/users/alangpierce/orgs","repos_url":"https://api.github.com/users/alangpierce/repos","events_url":"https://api.github.com/users/alangpierce/events{/privacy}","received_events_url":"https://api.github.com/users/alangpierce/received_events","type":"User","site_admin":false},"assignees":[{"login":"alangpierce","id":211605,"avatar_url":"https://avatars.githubusercontent.com/u/211605?v=3","gravatar_id":"","url":"https://api.github.com/users/alangpierce","html_url":"https://github.com/alangpierce","followers_url":"https://api.github.com/users/alangpierce/followers","following_url":"https://api.github.com/users/alangpierce/following{/other_user}","gists_url":"https://api.github.com/users/alangpierce/gists{/gist_id}","starred_url":"https://api.github.com/users/alangpierce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alangpierce/subscriptions","organizations_url":"https://api.github.com/users/alangpierce/orgs","repos_url":"https://api.github.com/users/alangpierce/repos","events_url":"https://api.github.com/users/alangpierce/events{/privacy}","received_events_url":"https://api.github.com/users/alangpierce/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2016-11-09T09:44:26Z","updated_at":"2016-11-19T21:42:13Z","closed_at":"2016-11-19T21:42:13Z","body":"decaffeinate is crashing on my CoffeeScript input:\r\n\r\n```coffee\r\nfoo = null\r\n->\r\n  {foo} = bar\r\n```\r\n\r\nhttp://decaffeinate-project.org/repl/#?evaluate=false&stage=full&code=foo%20%3D%20null%0A-%3E%0A%20%20%7Bfoo%7D%20%3D%20bar%0A\r\n\r\nI get this error:\r\n\r\n```\r\nEsnextStage failed to parse: Invalid left-hand side in assignment expression (2:0)\r\n  1 | var foo = null;\r\n> 2 | (function() {\r\n    | ^\r\n  3 |   return {foo} = bar;\r\n  4 | });```\r\n\r\n\r\n"}}
{"actor":{"display_login":"alangpierce"}}