{"action":"created","issue":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/25095","labels_url":"https://api.github.com/repos/dart-lang/sdk/issues/25095/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/sdk/issues/25095/comments","events_url":"https://api.github.com/repos/dart-lang/sdk/issues/25095/events","html_url":"https://github.com/dart-lang/sdk/issues/25095","id":120058567,"number":25095,"title":"When type annotation doesn't match assignment, offer quick fix to change annotation","user":{"login":"sethladd","id":5479,"avatar_url":"https://avatars.githubusercontent.com/u/5479?v=3","gravatar_id":"","url":"https://api.github.com/users/sethladd","html_url":"https://github.com/sethladd","followers_url":"https://api.github.com/users/sethladd/followers","following_url":"https://api.github.com/users/sethladd/following{/other_user}","gists_url":"https://api.github.com/users/sethladd/gists{/gist_id}","starred_url":"https://api.github.com/users/sethladd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sethladd/subscriptions","organizations_url":"https://api.github.com/users/sethladd/orgs","repos_url":"https://api.github.com/users/sethladd/repos","events_url":"https://api.github.com/users/sethladd/events{/privacy}","received_events_url":"https://api.github.com/users/sethladd/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dart-lang/sdk/labels/analyzer-quick-fix","name":"analyzer-quick-fix","color":"d4c5f9"},{"url":"https://api.github.com/repos/dart-lang/sdk/labels/area-analyzer","name":"area-analyzer","color":"c7def8"},{"url":"https://api.github.com/repos/dart-lang/sdk/labels/Priority-Medium","name":"Priority-Medium","color":"fbca04"},{"url":"https://api.github.com/repos/dart-lang/sdk/labels/type-enhancement","name":"type-enhancement","color":"ededed"}],"state":"closed","locked":false,"assignee":{"login":"scheglov","id":384794,"avatar_url":"https://avatars.githubusercontent.com/u/384794?v=3","gravatar_id":"","url":"https://api.github.com/users/scheglov","html_url":"https://github.com/scheglov","followers_url":"https://api.github.com/users/scheglov/followers","following_url":"https://api.github.com/users/scheglov/following{/other_user}","gists_url":"https://api.github.com/users/scheglov/gists{/gist_id}","starred_url":"https://api.github.com/users/scheglov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scheglov/subscriptions","organizations_url":"https://api.github.com/users/scheglov/orgs","repos_url":"https://api.github.com/users/scheglov/repos","events_url":"https://api.github.com/users/scheglov/events{/privacy}","received_events_url":"https://api.github.com/users/scheglov/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2015-12-02T23:21:38Z","updated_at":"2015-12-03T17:14:01Z","closed_at":"2015-12-03T02:52:21Z","body":"Considering this case: `String x = 1;` which is clearly a warning.\r\n\r\nAsking for quick fixes, I see these options:\r\n\r\n![screen shot 2015-12-02 at 3 20 09 pm](https://cloud.githubusercontent.com/assets/5479/11547404/56b5b3d0-9908-11e5-96ea-a4b84480c010.png)\r\n\r\nI'd love to see a \"Change String to int type annotation\" as a fix.\r\n\r\nAlso, the second Quick Fix (split variable) doesn't actually fix the problem. After I apply that \"fix\", the warning persists.\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/comments/161719826","html_url":"https://github.com/dart-lang/sdk/issues/25095#issuecomment-161719826","issue_url":"https://api.github.com/repos/dart-lang/sdk/issues/25095","id":161719826,"user":{"login":"devoncarew","id":1269969,"avatar_url":"https://avatars.githubusercontent.com/u/1269969?v=3","gravatar_id":"","url":"https://api.github.com/users/devoncarew","html_url":"https://github.com/devoncarew","followers_url":"https://api.github.com/users/devoncarew/followers","following_url":"https://api.github.com/users/devoncarew/following{/other_user}","gists_url":"https://api.github.com/users/devoncarew/gists{/gist_id}","starred_url":"https://api.github.com/users/devoncarew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devoncarew/subscriptions","organizations_url":"https://api.github.com/users/devoncarew/orgs","repos_url":"https://api.github.com/users/devoncarew/repos","events_url":"https://api.github.com/users/devoncarew/events{/privacy}","received_events_url":"https://api.github.com/users/devoncarew/received_events","type":"User","site_admin":false},"created_at":"2015-12-03T17:14:01Z","updated_at":"2015-12-03T17:14:01Z","body":"In atom, we show both types when the user hits `ctrl-1`. We sort quick fixes first; there's a slight difference in their presentation."}}