{"action":"closed","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/25819","repository_url":"https://api.github.com/repos/Microsoft/TypeScript","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/25819/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/25819/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/25819/events","html_url":"https://github.com/Microsoft/TypeScript/issues/25819","id":342975225,"node_id":"MDU6SXNzdWUzNDI5NzUyMjU=","number":25819,"title":"Array Destructure doesn't recognize line break","user":{"login":"ChosunOne","id":5751289,"node_id":"MDQ6VXNlcjU3NTEyODk=","avatar_url":"https://avatars0.githubusercontent.com/u/5751289?v=4","gravatar_id":"","url":"https://api.github.com/users/ChosunOne","html_url":"https://github.com/ChosunOne","followers_url":"https://api.github.com/users/ChosunOne/followers","following_url":"https://api.github.com/users/ChosunOne/following{/other_user}","gists_url":"https://api.github.com/users/ChosunOne/gists{/gist_id}","starred_url":"https://api.github.com/users/ChosunOne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChosunOne/subscriptions","organizations_url":"https://api.github.com/users/ChosunOne/orgs","repos_url":"https://api.github.com/users/ChosunOne/repos","events_url":"https://api.github.com/users/ChosunOne/events{/privacy}","received_events_url":"https://api.github.com/users/ChosunOne/received_events","type":"User","site_admin":false},"labels":[{"id":371615203,"node_id":"MDU6TGFiZWwzNzE2MTUyMDM=","url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Working%20as%20Intended","name":"Working as Intended","color":"fbca04","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-07-20T05:10:03Z","updated_at":"2018-08-01T00:26:20Z","closed_at":"2018-08-01T00:26:20Z","author_association":"NONE","body":"<!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨 -->\r\n<!--\r\nHalf of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker.\r\n\r\nPlease help us by doing the following steps before logging an issue:\r\n  * Search: https://github.com/Microsoft/TypeScript/search?type=Issues\r\n  * Read the CONTRIBUTING guidelines: https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md\r\n  * Read the FAQ: https://github.com/Microsoft/TypeScript/wiki/FAQ\r\n-->\r\n\r\n<!-- If you have a QUESTION:\r\n   THIS IS NOT A FORUM FOR QUESTIONS.\r\n   Ask questions at http://stackoverflow.com/questions/tagged/typescript\r\n    or https://gitter.im/Microsoft/TypeScript\r\n-->\r\n\r\n<!-- If you have a SUGGESTION:\r\n  Most suggestion reports are duplicates, please search extra hard before logging a new suggestion.\r\n  See https://github.com/Microsoft/TypeScript-wiki/blob/master/Writing-Good-Design-Proposals.md\r\n-->\r\n\r\n<!-- If you have a BUG:\r\n  Please fill in the *entire* template below.\r\n-->\r\n\r\n<!-- Please try to reproduce the issue with `typescript@next`. It may have already been fixed. -->\r\n**TypeScript Version:**  3.0.0-dev.201xxxxx\r\n\r\n<!-- Search terms you tried before logging this (so others can find this issue more easily) -->\r\n**Search Terms:** \r\nArray Destructure\r\n**Code**\r\n\r\n```ts\r\nlet {a, b} = {a: 1, b: 2}\r\nconsole.log(\"hello there\")\r\n[a, b] = [3, 4]\r\n```\r\n\r\n**Expected behavior:**\r\nThe compiler should simply expect a and b to be assigned to 3 and 4\r\n**Actual behavior:**\r\nrunning tsc will display an error related to an implicit any type for the line preceding the array destructure.  \r\n**Playground Link:** <!-- A link to a TypeScript Playground \"Share\" link which demonstrates this behavior --> \r\n[Here](https://www.typescriptlang.org/play/#src=let%20%7Ba%2C%20b%7D%20%3D%20%7Ba%3A%201%2C%20b%3A%202%7D%0D%0Aconsole.log(%22hello%20there%22)%0D%0A%5Ba%2C%20b%5D%20%3D%20%5B3%2C%204%5D) you can see that the compiled javascript doesn't separate the previous line from the destructure:\r\n\r\n[Here](https://www.typescriptlang.org/play/#src=let%20%7Ba%2C%20b%7D%20%3D%20%7Ba%3A%201%2C%20b%3A%202%7D%0D%0Aconsole.log(%22hello%20there%22)%3B%0D%0A%5Ba%2C%20b%5D%20%3D%20%5B3%2C%204%5D) you can see the correct compiled javascript once a semicolon is added to explicitly separate the lines\r\n\r\n\r\n**Related Issues:**\r\n"}}
{"actor":{"display_login":"typescript-bot"}}