{"action":"opened","issue":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/23785","labels_url":"https://api.github.com/repos/dart-lang/sdk/issues/23785/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/sdk/issues/23785/comments","events_url":"https://api.github.com/repos/dart-lang/sdk/issues/23785/events","html_url":"https://github.com/dart-lang/sdk/issues/23785","id":92865571,"number":23785,"title":"Webstorm: dynamic variables that are initialized with a function literal uses the wrong type for code-completion","user":{"login":"boasjls","id":12271154,"avatar_url":"https://avatars.githubusercontent.com/u/12271154?v=3","gravatar_id":"","url":"https://api.github.com/users/boasjls","html_url":"https://github.com/boasjls","followers_url":"https://api.github.com/users/boasjls/followers","following_url":"https://api.github.com/users/boasjls/following{/other_user}","gists_url":"https://api.github.com/users/boasjls/gists{/gist_id}","starred_url":"https://api.github.com/users/boasjls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boasjls/subscriptions","organizations_url":"https://api.github.com/users/boasjls/orgs","repos_url":"https://api.github.com/users/boasjls/repos","events_url":"https://api.github.com/users/boasjls/events{/privacy}","received_events_url":"https://api.github.com/users/boasjls/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-03T12:30:51Z","updated_at":"2015-07-03T12:30:51Z","closed_at":null,"body":"**What steps will reproduce the problem?**\r\n1) Open Webstorm and create a Dart-Console Application\r\n2) In main.dart add a dynamic variable declaration that initializes to a function literal\r\n```\r\nmain(List<String> arguments) {\r\n    var f = () = > 42;\r\n}\r\n```\r\n3) After the variable declaration statement type `f.` and wait for the code-completion suggestions to appear\r\n\r\n**What is the expected output? What do you see instead?**\r\n**Expected:**\r\nCode-completion should show suggestions based on the type Function\r\n\r\n**Actual:**\r\nCode-completion shows suggestions based on the type int;\r\n\r\n**What version of the product are you using?**\r\nWebstorm 10.0.4\r\nDart SDK: 1.12.0-dev.1.1"}}