{"action":"created","issue":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/27805","repository_url":"https://api.github.com/repos/dart-lang/sdk","labels_url":"https://api.github.com/repos/dart-lang/sdk/issues/27805/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/sdk/issues/27805/comments","events_url":"https://api.github.com/repos/dart-lang/sdk/issues/27805/events","html_url":"https://github.com/dart-lang/sdk/issues/27805","id":188716845,"number":27805,"title":"Analyzer no longer infers type of final class fields","user":{"login":"lassedamgaard","id":6475621,"avatar_url":"https://avatars.githubusercontent.com/u/6475621?v=3","gravatar_id":"","url":"https://api.github.com/users/lassedamgaard","html_url":"https://github.com/lassedamgaard","followers_url":"https://api.github.com/users/lassedamgaard/followers","following_url":"https://api.github.com/users/lassedamgaard/following{/other_user}","gists_url":"https://api.github.com/users/lassedamgaard/gists{/gist_id}","starred_url":"https://api.github.com/users/lassedamgaard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lassedamgaard/subscriptions","organizations_url":"https://api.github.com/users/lassedamgaard/orgs","repos_url":"https://api.github.com/users/lassedamgaard/repos","events_url":"https://api.github.com/users/lassedamgaard/events{/privacy}","received_events_url":"https://api.github.com/users/lassedamgaard/received_events","type":"User","site_admin":false},"labels":[{"id":219928186,"url":"https://api.github.com/repos/dart-lang/sdk/labels/area-analyzer","name":"area-analyzer","color":"c7def8","default":false},{"id":334171875,"url":"https://api.github.com/repos/dart-lang/sdk/labels/P2%20medium","name":"P2 medium","color":"fbca04","default":false},{"id":334529063,"url":"https://api.github.com/repos/dart-lang/sdk/labels/Type:%20bug","name":"Type: bug","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-11-11T09:16:41Z","updated_at":"2016-11-11T17:16:33Z","closed_at":null,"body":"In SDK 1.19.1 and several previous minor versions the type of final class fields was inferred. Here's an example from Webstorm, issue is the same in Dartpad:\r\n\r\n![screen shot 2016-11-11 at 09 59 42](https://cloud.githubusercontent.com/assets/6475621/20209950/63cc2d5c-a7f7-11e6-859d-7f27a03c0fba.png)\r\n\r\nThis is no longer the case in SDK 1.20.1 or 1.21.0-dev.5.0:\r\n\r\n![screen shot 2016-11-11 at 10 01 10](https://cloud.githubusercontent.com/assets/6475621/20209957/6e7c8cd8-a7f7-11e6-8daa-ae4418282a10.png)\r\n\r\nNeedless to say this is quite annoying if you have a large codebase relying on this inference."},"comment":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/comments/260006968","html_url":"https://github.com/dart-lang/sdk/issues/27805#issuecomment-260006968","issue_url":"https://api.github.com/repos/dart-lang/sdk/issues/27805","id":260006968,"user":{"login":"leafpetersen","id":8484504,"avatar_url":"https://avatars.githubusercontent.com/u/8484504?v=3","gravatar_id":"","url":"https://api.github.com/users/leafpetersen","html_url":"https://github.com/leafpetersen","followers_url":"https://api.github.com/users/leafpetersen/followers","following_url":"https://api.github.com/users/leafpetersen/following{/other_user}","gists_url":"https://api.github.com/users/leafpetersen/gists{/gist_id}","starred_url":"https://api.github.com/users/leafpetersen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leafpetersen/subscriptions","organizations_url":"https://api.github.com/users/leafpetersen/orgs","repos_url":"https://api.github.com/users/leafpetersen/repos","events_url":"https://api.github.com/users/leafpetersen/events{/privacy}","received_events_url":"https://api.github.com/users/leafpetersen/received_events","type":"User","site_admin":false},"created_at":"2016-11-11T17:16:32Z","updated_at":"2016-11-11T17:16:32Z","body":"This is definitely a bug, though I'm not sure where.  The command line analyzer is definitely inferring a type for that field as of 1.21.0-dev.1.0  - I just tested it.\r\n\r\nI also just tried this code in Intellij 2016.2.5 with the same Dart version, and I get completions for all of the expected methods (substring, etc).\r\n\r\nI also just tried this code in DartPad, and I also see the completions.\r\n\r\nAre you quite sure that you have strong mode turned on?"}}
{"actor":{"display_login":"leafpetersen"}}