{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/15682","repository_url":"https://api.github.com/repos/Microsoft/TypeScript","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/15682/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/15682/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/15682/events","html_url":"https://github.com/Microsoft/TypeScript/issues/15682","id":227180980,"number":15682,"title":"Indexing into numbers should be an error","user":{"login":"danvk","id":98301,"avatar_url":"https://avatars2.githubusercontent.com/u/98301?v=3","gravatar_id":"","url":"https://api.github.com/users/danvk","html_url":"https://github.com/danvk","followers_url":"https://api.github.com/users/danvk/followers","following_url":"https://api.github.com/users/danvk/following{/other_user}","gists_url":"https://api.github.com/users/danvk/gists{/gist_id}","starred_url":"https://api.github.com/users/danvk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danvk/subscriptions","organizations_url":"https://api.github.com/users/danvk/orgs","repos_url":"https://api.github.com/users/danvk/repos","events_url":"https://api.github.com/users/danvk/events{/privacy}","received_events_url":"https://api.github.com/users/danvk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-05-08T21:31:52Z","updated_at":"2017-05-08T21:43:28Z","closed_at":null,"body":"<!-- BUGS: Please use this template. -->\r\n<!-- QUESTIONS: This is not a general support forum! Ask Qs at http://stackoverflow.com/questions/tagged/typescript -->\r\n<!-- SUGGESTIONS: See https://github.com/Microsoft/TypeScript-wiki/blob/master/Writing-Good-Design-Proposals.md -->\r\n\r\nI was in a situation where I moved from `number[][]` to `number[]` and was surprised that some errors along these lines didn't get flagged.\r\n\r\n**TypeScript Version:**  2.2.1\r\n\r\n**Code**\r\n\r\n```ts\r\nconst x = 10;  // x's type is number\r\nconst y = x[12];  // y's type is any. This is not an error.\r\n```\r\n\r\n**Expected behavior:**\r\n\r\nIndexing into a number should be an error.\r\n\r\n**Actual behavior:**\r\n\r\nIndexing into a number is allowed, unless you set `noImplicitAny`."},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/299999625","html_url":"https://github.com/Microsoft/TypeScript/issues/15682#issuecomment-299999625","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/15682","id":299999625,"user":{"login":"mhegazy","id":8000722,"avatar_url":"https://avatars0.githubusercontent.com/u/8000722?v=3","gravatar_id":"","url":"https://api.github.com/users/mhegazy","html_url":"https://github.com/mhegazy","followers_url":"https://api.github.com/users/mhegazy/followers","following_url":"https://api.github.com/users/mhegazy/following{/other_user}","gists_url":"https://api.github.com/users/mhegazy/gists{/gist_id}","starred_url":"https://api.github.com/users/mhegazy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhegazy/subscriptions","organizations_url":"https://api.github.com/users/mhegazy/orgs","repos_url":"https://api.github.com/users/mhegazy/repos","events_url":"https://api.github.com/users/mhegazy/events{/privacy}","received_events_url":"https://api.github.com/users/mhegazy/received_events","type":"User","site_admin":false},"created_at":"2017-05-08T21:43:28Z","updated_at":"2017-05-08T21:43:28Z","body":"I should add that we recommend always using `--noImplicitAny` for TS code."}}
{"actor":{"display_login":"mhegazy"}}