{"action":"created","issue":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/28976","repository_url":"https://api.github.com/repos/dart-lang/sdk","labels_url":"https://api.github.com/repos/dart-lang/sdk/issues/28976/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/sdk/issues/28976/comments","events_url":"https://api.github.com/repos/dart-lang/sdk/issues/28976/events","html_url":"https://github.com/dart-lang/sdk/issues/28976","id":212413559,"number":28976,"title":"Autocompletion window shows wrong type (dynamic instead of real type)","user":{"login":"MikeMitterer","id":116654,"avatar_url":"https://avatars3.githubusercontent.com/u/116654?v=3","gravatar_id":"","url":"https://api.github.com/users/MikeMitterer","html_url":"https://github.com/MikeMitterer","followers_url":"https://api.github.com/users/MikeMitterer/followers","following_url":"https://api.github.com/users/MikeMitterer/following{/other_user}","gists_url":"https://api.github.com/users/MikeMitterer/gists{/gist_id}","starred_url":"https://api.github.com/users/MikeMitterer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikeMitterer/subscriptions","organizations_url":"https://api.github.com/users/MikeMitterer/orgs","repos_url":"https://api.github.com/users/MikeMitterer/repos","events_url":"https://api.github.com/users/MikeMitterer/events{/privacy}","received_events_url":"https://api.github.com/users/MikeMitterer/received_events","type":"User","site_admin":false},"labels":[{"id":442608008,"url":"https://api.github.com/repos/dart-lang/sdk/labels/area-intellij","name":"area-intellij","color":"c5def5","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-07T12:06:55Z","updated_at":"2017-03-09T10:11:56Z","closed_at":null,"body":"First SS shows wrong type info:\r\n![capturfiles-20170307_010311](https://cloud.githubusercontent.com/assets/116654/23655780/d718fb7e-0336-11e7-9aa4-94a74d477161.png)\r\n\r\nSecond SS shows the type info (now correct) if I STRG+hover over _records \r\n![capturfiles-20170307_010407](https://cloud.githubusercontent.com/assets/116654/23655785/dce01862-0336-11e7-85e9-62883ebfb4ad.png)\r\n"},"comment":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/comments/285310546","html_url":"https://github.com/dart-lang/sdk/issues/28976#issuecomment-285310546","issue_url":"https://api.github.com/repos/dart-lang/sdk/issues/28976","id":285310546,"user":{"login":"alexander-doroshko","id":4499789,"avatar_url":"https://avatars2.githubusercontent.com/u/4499789?v=3","gravatar_id":"","url":"https://api.github.com/users/alexander-doroshko","html_url":"https://github.com/alexander-doroshko","followers_url":"https://api.github.com/users/alexander-doroshko/followers","following_url":"https://api.github.com/users/alexander-doroshko/following{/other_user}","gists_url":"https://api.github.com/users/alexander-doroshko/gists{/gist_id}","starred_url":"https://api.github.com/users/alexander-doroshko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexander-doroshko/subscriptions","organizations_url":"https://api.github.com/users/alexander-doroshko/orgs","repos_url":"https://api.github.com/users/alexander-doroshko/repos","events_url":"https://api.github.com/users/alexander-doroshko/events{/privacy}","received_events_url":"https://api.github.com/users/alexander-doroshko/received_events","type":"User","site_admin":false},"created_at":"2017-03-09T10:11:56Z","updated_at":"2017-03-09T10:11:56Z","body":"@floitschG Code completion is powered by the Analysis Server, IntelliJ IDEA just renders suggestions. In this case `'dynamic'` type is given by the server, so I'm changing `area-intellij` to `area-analyser`. Minimal case to reproduce is:\r\n```\r\nmain() {\r\n  final _records1 = new List<String>();\r\n  final _records2 = new List<String>();\r\n  _rec<invoke completion here>\r\n}\r\n```\r\nThis may be by design, vars are declared as dynamic (cc @bwilkerson). Not sure why Static type on Cmd+hover is not dynamic on Mike's 2nd screenshot. For me it is:\r\n![image](https://cloud.githubusercontent.com/assets/4499789/23745623/eab98362-04c9-11e7-8a28-e945e1db2475.png)\r\n\r\n"}}
{"actor":{"display_login":"alexander-doroshko"}}