{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/24894","repository_url":"https://api.github.com/repos/Microsoft/TypeScript","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/24894/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/24894/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/24894/events","html_url":"https://github.com/Microsoft/TypeScript/issues/24894","id":331409426,"node_id":"MDU6SXNzdWUzMzE0MDk0MjY=","number":24894,"title":"Should unused detection mark variables only used in other unused functions as unused? ","user":{"login":"mjbvz","id":12821956,"node_id":"MDQ6VXNlcjEyODIxOTU2","avatar_url":"https://avatars2.githubusercontent.com/u/12821956?v=4","gravatar_id":"","url":"https://api.github.com/users/mjbvz","html_url":"https://github.com/mjbvz","followers_url":"https://api.github.com/users/mjbvz/followers","following_url":"https://api.github.com/users/mjbvz/following{/other_user}","gists_url":"https://api.github.com/users/mjbvz/gists{/gist_id}","starred_url":"https://api.github.com/users/mjbvz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjbvz/subscriptions","organizations_url":"https://api.github.com/users/mjbvz/orgs","repos_url":"https://api.github.com/users/mjbvz/repos","events_url":"https://api.github.com/users/mjbvz/events{/privacy}","received_events_url":"https://api.github.com/users/mjbvz/received_events","type":"User","site_admin":false},"labels":[{"id":371615233,"node_id":"MDU6TGFiZWwzNzE2MTUyMzM=","url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Design%20Limitation","name":"Design Limitation","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-06-12T01:55:06Z","updated_at":"2018-07-02T19:02:15Z","closed_at":null,"author_association":"COLLABORATOR","body":"From https://github.com/Microsoft/vscode/issues/51460#issuecomment-396331433\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.20180608\r\n\r\n<!-- Search terms you tried before logging this (so others can find this issue more easily) -->\r\n**Search Terms:** \r\n- Unused\r\n\r\n**Code**\r\nLook at the unused variables for the code:\r\n\r\n```ts\r\nexport const _ = 1;\r\n\r\nfunction a() { }\r\n\r\nfunction b() { a() }\r\n```\r\n\r\n\r\n**Expected behavior:**\r\nBoth `a` and `b` are unused since `a` is only used from `b`\r\n\r\n**Actual behavior:**\r\nOnly `b` is explicitly marked as unused.\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/401902683","html_url":"https://github.com/Microsoft/TypeScript/issues/24894#issuecomment-401902683","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/24894","id":401902683,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMTkwMjY4Mw==","user":{"login":"typescript-bot","id":23042052,"node_id":"MDQ6VXNlcjIzMDQyMDUy","avatar_url":"https://avatars0.githubusercontent.com/u/23042052?v=4","gravatar_id":"","url":"https://api.github.com/users/typescript-bot","html_url":"https://github.com/typescript-bot","followers_url":"https://api.github.com/users/typescript-bot/followers","following_url":"https://api.github.com/users/typescript-bot/following{/other_user}","gists_url":"https://api.github.com/users/typescript-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/typescript-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/typescript-bot/subscriptions","organizations_url":"https://api.github.com/users/typescript-bot/orgs","repos_url":"https://api.github.com/users/typescript-bot/repos","events_url":"https://api.github.com/users/typescript-bot/events{/privacy}","received_events_url":"https://api.github.com/users/typescript-bot/received_events","type":"User","site_admin":false},"created_at":"2018-07-02T19:02:15Z","updated_at":"2018-07-02T19:02:15Z","author_association":"COLLABORATOR","body":"Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed."}}
{"actor":{"display_login":"typescript-bot"}}