{"action":"opened","issue":{"url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/issues/1394","labels_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/issues/1394/labels{/name}","comments_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/issues/1394/comments","events_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/issues/1394/events","html_url":"https://github.com/go-lang-plugin-org/go-lang-idea-plugin/issues/1394","id":59305668,"number":1394,"title":"[1.0] Unbound closure variable is not resolved if the closure is defined in a function call","user":{"login":"horkhe","id":798874,"avatar_url":"https://avatars.githubusercontent.com/u/798874?v=3","gravatar_id":"","url":"https://api.github.com/users/horkhe","html_url":"https://github.com/horkhe","followers_url":"https://api.github.com/users/horkhe/followers","following_url":"https://api.github.com/users/horkhe/following{/other_user}","gists_url":"https://api.github.com/users/horkhe/gists{/gist_id}","starred_url":"https://api.github.com/users/horkhe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/horkhe/subscriptions","organizations_url":"https://api.github.com/users/horkhe/orgs","repos_url":"https://api.github.com/users/horkhe/repos","events_url":"https://api.github.com/users/horkhe/events{/privacy}","received_events_url":"https://api.github.com/users/horkhe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-27T22:45:13Z","updated_at":"2015-02-27T22:45:13Z","closed_at":null,"body":"```Go\r\nfunc TestFor() {\r\n\tvar v []int\r\n\tcall(func() {\r\n\t\tfor range v { // v is not resolved here\t\t\t\r\n\t\t}\r\n\t})\r\n}\r\n\r\nfunc TestIf() {\r\n\tvar v string\r\n\tcall(func() {\r\n\t\tif v == \"\" {\r\n\t\t}\r\n\t\tif \"\" == v {  // v is not resolved here\r\n\t\t}\r\n\t})\r\n}\r\n\r\nfunc call(f func()) {\r\n\tf()\r\n}\r\n```"}}