{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/20873","repository_url":"https://api.github.com/repos/Microsoft/TypeScript","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/20873/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/20873/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/20873/events","html_url":"https://github.com/Microsoft/TypeScript/issues/20873","id":284291939,"number":20873,"title":"strictNullChecks doesn't work with empty destructuring assignment","user":{"login":"falsandtru","id":3143368,"avatar_url":"https://avatars2.githubusercontent.com/u/3143368?v=4","gravatar_id":"","url":"https://api.github.com/users/falsandtru","html_url":"https://github.com/falsandtru","followers_url":"https://api.github.com/users/falsandtru/followers","following_url":"https://api.github.com/users/falsandtru/following{/other_user}","gists_url":"https://api.github.com/users/falsandtru/gists{/gist_id}","starred_url":"https://api.github.com/users/falsandtru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/falsandtru/subscriptions","organizations_url":"https://api.github.com/users/falsandtru/orgs","repos_url":"https://api.github.com/users/falsandtru/repos","events_url":"https://api.github.com/users/falsandtru/events{/privacy}","received_events_url":"https://api.github.com/users/falsandtru/received_events","type":"User","site_admin":false},"labels":[{"id":113970366,"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Bug","name":"Bug","color":"e11d21","default":false},{"id":265374716,"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/good%20first%20issue","name":"good first issue","color":"7944ba","default":true},{"id":117630704,"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/help%20wanted","name":"help wanted","color":"009800","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-12-23T07:28:41Z","updated_at":"2017-12-23T09:44:33Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"**TypeScript Version:**  2.7.0-dev.20171223\r\n\r\n**Code**\r\n\r\n```ts\r\nconst [] = null;\r\n```\r\n\r\n**Expected behavior:**\r\n\r\nerror\r\n\r\n**Actual behavior:**\r\n\r\npass"},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/353717014","html_url":"https://github.com/Microsoft/TypeScript/issues/20873#issuecomment-353717014","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/20873","id":353717014,"user":{"login":"DanielRosenwasser","id":972891,"avatar_url":"https://avatars2.githubusercontent.com/u/972891?v=4","gravatar_id":"","url":"https://api.github.com/users/DanielRosenwasser","html_url":"https://github.com/DanielRosenwasser","followers_url":"https://api.github.com/users/DanielRosenwasser/followers","following_url":"https://api.github.com/users/DanielRosenwasser/following{/other_user}","gists_url":"https://api.github.com/users/DanielRosenwasser/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielRosenwasser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielRosenwasser/subscriptions","organizations_url":"https://api.github.com/users/DanielRosenwasser/orgs","repos_url":"https://api.github.com/users/DanielRosenwasser/repos","events_url":"https://api.github.com/users/DanielRosenwasser/events{/privacy}","received_events_url":"https://api.github.com/users/DanielRosenwasser/received_events","type":"User","site_admin":false},"created_at":"2017-12-23T09:44:33Z","updated_at":"2017-12-23T09:44:33Z","author_association":"MEMBER","body":"We should reuse the `Object is possibly ____` messages and check for the RHS of any destructuring assignment. The following cases should error:\r\n\r\n```ts\r\nlet { } = null;\r\n({} = null);\r\n\r\nlet { } = undefined;\r\n({} = undefined);\r\n\r\nlet { } = Math.random() ? {} : null;\r\n({} = Math.random() ? {} : null);\r\n\r\nlet { } = Math.random() ? {} : undefined;\r\n({} = Math.random() ? {} : undefined);\r\n\r\nlet { } = Math.random() ? null : undefined;\r\n({} = Math.random() ? null : undefined);\r\n```"}}
{"actor":{"display_login":"DanielRosenwasser"}}