{"action":"created","issue":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/26110","repository_url":"https://api.github.com/repos/dart-lang/sdk","labels_url":"https://api.github.com/repos/dart-lang/sdk/issues/26110/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/sdk/issues/26110/comments","events_url":"https://api.github.com/repos/dart-lang/sdk/issues/26110/events","html_url":"https://github.com/dart-lang/sdk/issues/26110","id":144210185,"number":26110,"title":"v1.15 and type inference is still poor in Dart","user":{"login":"MikeMitterer","id":116654,"avatar_url":"https://avatars.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":[{"url":"https://api.github.com/repos/dart-lang/sdk/labels/area-analyzer","name":"area-analyzer","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-29T09:35:57Z","updated_at":"2016-03-29T12:59:14Z","closed_at":null,"body":"![screenshot-1989](https://cloud.githubusercontent.com/assets/116654/14102428/ddec7e8a-f59a-11e5-91b0-cec16dc0f1b4.png)\r\n\r\nFrom time to time I try to declare variables right side only just to figure out if it finally works but it still fails! (After how many years of Dart??? 3? 4?)\r\n\r\nIn your styleguide you promote this kind of declaration  (https://www.dartlang.org/effective-dart/style/#prefer-using-lowercamelcase-for-constant-names) which is cool if it would work. And yes - in some situations it works but it fails in other cases. Maybe you guys know all these cases but I don't. \r\n\r\nThere is always this feeling that type inference fails in Dart and that I have to define the types on both sides to make sure that Analyzer knows what I mean.\r\n\r\nThe same thing for Generics. `final List<String> name = new List<String>()` this is how a String-List looks in my code. I'm almost!!!! sure that for the assignment `new List()` is enough but I'm always a bit leery if the analyzer / autocompletion in IJ always knows what I mean so I use the long form. \r\n\r\nVery annoying - Dart is such a nice language but here it really falls behind other languages like Scala."},"comment":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/comments/202880613","html_url":"https://github.com/dart-lang/sdk/issues/26110#issuecomment-202880613","issue_url":"https://api.github.com/repos/dart-lang/sdk/issues/26110","id":202880613,"user":{"login":"zoechi","id":405837,"avatar_url":"https://avatars.githubusercontent.com/u/405837?v=3","gravatar_id":"","url":"https://api.github.com/users/zoechi","html_url":"https://github.com/zoechi","followers_url":"https://api.github.com/users/zoechi/followers","following_url":"https://api.github.com/users/zoechi/following{/other_user}","gists_url":"https://api.github.com/users/zoechi/gists{/gist_id}","starred_url":"https://api.github.com/users/zoechi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zoechi/subscriptions","organizations_url":"https://api.github.com/users/zoechi/orgs","repos_url":"https://api.github.com/users/zoechi/repos","events_url":"https://api.github.com/users/zoechi/events{/privacy}","received_events_url":"https://api.github.com/users/zoechi/received_events","type":"User","site_admin":false},"created_at":"2016-03-29T12:59:14Z","updated_at":"2016-03-29T12:59:14Z","body":"I think it's great that you report the issue. To be able to trust type inference is something I'm really looking forward to as well (also since a few years already ;-) ). \r\n\r\nScala is almost 10 years older and therefore had 10 more years to be refined. \r\n\r\nThere was lot of progress made the past months improving the analyzer. \r\nI think instead of complaining it's better to just create an issue with a clear repo case that shows what's actually happening and what is expected. \r\n\r\n\r\n\r\n\r\n"}}