{"action":"opened","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/1996","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/1996/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/1996/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/1996/events","html_url":"https://github.com/Microsoft/TypeScript/issues/1996","id":57125209,"number":1996,"title":"ES6 Map callback parameter type-checking is wrong","user":{"login":"webbedspace","id":83939,"avatar_url":"https://avatars.githubusercontent.com/u/83939?v=3","gravatar_id":"","url":"https://api.github.com/users/webbedspace","html_url":"https://github.com/webbedspace","followers_url":"https://api.github.com/users/webbedspace/followers","following_url":"https://api.github.com/users/webbedspace/following{/other_user}","gists_url":"https://api.github.com/users/webbedspace/gists{/gist_id}","starred_url":"https://api.github.com/users/webbedspace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webbedspace/subscriptions","organizations_url":"https://api.github.com/users/webbedspace/orgs","repos_url":"https://api.github.com/users/webbedspace/repos","events_url":"https://api.github.com/users/webbedspace/events{/privacy}","received_events_url":"https://api.github.com/users/webbedspace/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-10T03:18:28Z","updated_at":"2015-02-10T03:18:28Z","closed_at":null,"body":"[See here](http://www.typescriptlang.org/Playground#src=var%20m%20%3D%20new%20Map%28%29%3B%0Am.set%281%2C2%29%0Am.forEach%28function%20%28value%2C%20key%29%20{%0A%20%20console.log%281%20%2F%20key%2C%201%20%2F%20value%29%3B%0A}%29%3B).\r\n```\r\nvar m = new Map();\r\nm.set(1,2)\r\nm.forEach(function (value, key) {\r\n  console.log(1 / key, 1 / value);\r\n});\r\n```\r\nThe `1 / key` and `1 / value` things each produce the error `The right-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.`"}}