{"action":"closed","issue":{"url":"https://api.github.com/repos/google/closure-compiler/issues/1556","repository_url":"https://api.github.com/repos/google/closure-compiler","labels_url":"https://api.github.com/repos/google/closure-compiler/issues/1556/labels{/name}","comments_url":"https://api.github.com/repos/google/closure-compiler/issues/1556/comments","events_url":"https://api.github.com/repos/google/closure-compiler/issues/1556/events","html_url":"https://github.com/google/closure-compiler/issues/1556","id":134245151,"number":1556,"title":"Type mismatch in array keys (string  vs number) in \"for( a in b)\" with advanced compilation","user":{"login":"tdelmas","id":1955774,"avatar_url":"https://avatars.githubusercontent.com/u/1955774?v=3","gravatar_id":"","url":"https://api.github.com/users/tdelmas","html_url":"https://github.com/tdelmas","followers_url":"https://api.github.com/users/tdelmas/followers","following_url":"https://api.github.com/users/tdelmas/following{/other_user}","gists_url":"https://api.github.com/users/tdelmas/gists{/gist_id}","starred_url":"https://api.github.com/users/tdelmas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tdelmas/subscriptions","organizations_url":"https://api.github.com/users/tdelmas/orgs","repos_url":"https://api.github.com/users/tdelmas/repos","events_url":"https://api.github.com/users/tdelmas/events{/privacy}","received_events_url":"https://api.github.com/users/tdelmas/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-17T10:39:37Z","updated_at":"2016-02-17T14:47:17Z","closed_at":"2016-02-17T14:47:17Z","body":"```js\r\n/**\r\n* @param {Array.<*>} l\r\n*/\r\nfunction f(l){\r\n  for(var i in l ) {\r\n    console.info( l[i] )\r\n  }\r\n}\r\n```\r\n\r\nProduce : \r\n\r\n> JSC_TYPE_MISMATCH: restricted index type\r\n>found   : string\r\n>required: number at line 8 character 20\r\n>    console.info( l[i] )\r\n\r\nExample :\r\nhttps://closure-compiler.appspot.com/home#code%3D%252F%252F%2520%253D%253DClosureCompiler%253D%253D%250A%252F%252F%2520%2540compilation_level%2520ADVANCED_OPTIMIZATIONS%250A%252F%252F%2520%2540output_file_name%2520default.js%250A%252F%252F%2520%253D%253D%252FClosureCompiler%253D%253D%250A%250A%252F%252F%2520ADD%2520YOUR%2520CODE%2520HERE%250A%250A%252F**%250A*%2520%2540param%2520%257BArray.%253C*%253E%257D%2520l%250A*%252F%250Afunction%2520f(l)%257B%250A%2520%2520for(var%2520i%2520in%2520l%2520)%2520%257B%250A%2520%2520%2520%2520console.info(%2520l%255Bi%255D%2520)%250A%2520%2520%257D%250A%257D%250Afunction%2520hello(name)%2520%257B%250A%2520%2520f(%255B1%252C%2520%2522test%2522%252C%2520%257B%257D%255D)%253B%250A%2520%2520alert('Hello%252C%2520'%2520%252B%2520name)%253B%250A%257D%250Ahello('New%2520user')%253B%250A%250A"}}