{"action":"created","issue":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/27088","repository_url":"https://api.github.com/repos/dart-lang/sdk","labels_url":"https://api.github.com/repos/dart-lang/sdk/issues/27088/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/sdk/issues/27088/comments","events_url":"https://api.github.com/repos/dart-lang/sdk/issues/27088/events","html_url":"https://github.com/dart-lang/sdk/issues/27088","id":171503978,"number":27088,"title":"Future.then((value) {}) does not have a type.","user":{"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},"labels":[{"url":"https://api.github.com/repos/dart-lang/sdk/labels/analyzer-strong-mode","name":"analyzer-strong-mode","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/P1%20high","name":"P1 high","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/dart-lang/sdk/milestones/41","html_url":"https://github.com/dart-lang/sdk/milestones/1.19","labels_url":"https://api.github.com/repos/dart-lang/sdk/milestones/41/labels","id":1868106,"number":41,"title":"1.19","description":"","creator":{"login":"kevmoo","id":17034,"avatar_url":"https://avatars.githubusercontent.com/u/17034?v=3","gravatar_id":"","url":"https://api.github.com/users/kevmoo","html_url":"https://github.com/kevmoo","followers_url":"https://api.github.com/users/kevmoo/followers","following_url":"https://api.github.com/users/kevmoo/following{/other_user}","gists_url":"https://api.github.com/users/kevmoo/gists{/gist_id}","starred_url":"https://api.github.com/users/kevmoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevmoo/subscriptions","organizations_url":"https://api.github.com/users/kevmoo/orgs","repos_url":"https://api.github.com/users/kevmoo/repos","events_url":"https://api.github.com/users/kevmoo/events{/privacy}","received_events_url":"https://api.github.com/users/kevmoo/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":10,"state":"open","created_at":"2016-07-06T17:05:14Z","updated_at":"2016-08-16T20:00:47Z","due_on":"2016-08-17T00:00:00Z","closed_at":null},"comments":4,"created_at":"2016-08-16T20:00:47Z","updated_at":"2016-08-16T20:16:52Z","closed_at":null,"body":"@jmesserly @leafpetersen \r\n\r\nTest case:\r\n\r\n```dart\r\nimport 'dart:async';\r\n\r\nmain() {\r\n  getA().then((a) => a.getItems()).then((items) => items.length);\r\n}\r\n\r\nFuture<A> getA() async => new A();\r\n\r\nclass A {\r\n  Future<List<int>> getItems() async => <int>[];\r\n}\r\n```\r\n\r\nWe know the type of `a.getItems()`, but later in `(items) => items.length` the type of `items` is not set.\r\n\r\n![image](https://cloud.githubusercontent.com/assets/384794/17713747/4b8d1d4e-63b1-11e6-8072-bcd67a8dd114.png)\r\n\r\nIs it the same as https://github.com/dart-lang/sdk/issues/25944 ?"},"comment":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/comments/240224236","html_url":"https://github.com/dart-lang/sdk/issues/27088#issuecomment-240224236","issue_url":"https://api.github.com/repos/dart-lang/sdk/issues/27088","id":240224236,"user":{"login":"jmesserly","id":1081711,"avatar_url":"https://avatars.githubusercontent.com/u/1081711?v=3","gravatar_id":"","url":"https://api.github.com/users/jmesserly","html_url":"https://github.com/jmesserly","followers_url":"https://api.github.com/users/jmesserly/followers","following_url":"https://api.github.com/users/jmesserly/following{/other_user}","gists_url":"https://api.github.com/users/jmesserly/gists{/gist_id}","starred_url":"https://api.github.com/users/jmesserly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmesserly/subscriptions","organizations_url":"https://api.github.com/users/jmesserly/orgs","repos_url":"https://api.github.com/users/jmesserly/repos","events_url":"https://api.github.com/users/jmesserly/events{/privacy}","received_events_url":"https://api.github.com/users/jmesserly/received_events","type":"User","site_admin":false},"created_at":"2016-08-16T20:16:52Z","updated_at":"2016-08-16T20:16:52Z","body":"hah, yeah that was exactly our fear. So far we've made sure these types aren't user-visible, we always pick one or the other before we'd report anything about them (impl details: it only exists inside InferenceContext)."}}
{"actor":{"display_login":"jmesserly"}}