{"action":"created","issue":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/26474","repository_url":"https://api.github.com/repos/dart-lang/sdk","labels_url":"https://api.github.com/repos/dart-lang/sdk/issues/26474/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/sdk/issues/26474/comments","events_url":"https://api.github.com/repos/dart-lang/sdk/issues/26474/events","html_url":"https://github.com/dart-lang/sdk/issues/26474","id":155364749,"number":26474,"title":"Analyzer doesn't catch async functions that are assigned to typedefs that don't return Future","user":{"login":"Hixie","id":551196,"avatar_url":"https://avatars.githubusercontent.com/u/551196?v=3","gravatar_id":"","url":"https://api.github.com/users/Hixie","html_url":"https://github.com/Hixie","followers_url":"https://api.github.com/users/Hixie/followers","following_url":"https://api.github.com/users/Hixie/following{/other_user}","gists_url":"https://api.github.com/users/Hixie/gists{/gist_id}","starred_url":"https://api.github.com/users/Hixie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hixie/subscriptions","organizations_url":"https://api.github.com/users/Hixie/orgs","repos_url":"https://api.github.com/users/Hixie/repos","events_url":"https://api.github.com/users/Hixie/events{/privacy}","received_events_url":"https://api.github.com/users/Hixie/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":7,"created_at":"2016-05-17T21:20:23Z","updated_at":"2016-06-03T10:18:39Z","closed_at":null,"body":"This doesn't have any warnings or lints:\r\n\r\n```\r\n/// Notice how this returns void, not Future<Null> or dynamic.\r\ntypedef void Test();\r\n\r\nvoid main() {\r\n  Test t = () async { }; // this closure returns a Future, but there's no error here\r\n  dynamic r = t() as dynamic;\r\n  print(r.runtimeType); // prints \"_Future\"\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/comments/223543760","html_url":"https://github.com/dart-lang/sdk/issues/26474#issuecomment-223543760","issue_url":"https://api.github.com/repos/dart-lang/sdk/issues/26474","id":223543760,"user":{"login":"ochafik","id":273860,"avatar_url":"https://avatars.githubusercontent.com/u/273860?v=3","gravatar_id":"","url":"https://api.github.com/users/ochafik","html_url":"https://github.com/ochafik","followers_url":"https://api.github.com/users/ochafik/followers","following_url":"https://api.github.com/users/ochafik/following{/other_user}","gists_url":"https://api.github.com/users/ochafik/gists{/gist_id}","starred_url":"https://api.github.com/users/ochafik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ochafik/subscriptions","organizations_url":"https://api.github.com/users/ochafik/orgs","repos_url":"https://api.github.com/users/ochafik/repos","events_url":"https://api.github.com/users/ochafik/events{/privacy}","received_events_url":"https://api.github.com/users/ochafik/received_events","type":"User","site_admin":false},"created_at":"2016-06-03T10:18:39Z","updated_at":"2016-06-03T10:18:39Z","body":"Note: general case of statically detecting unawaited futures is tracked at https://github.com/dart-lang/sdk/issues/24171"}}
{"actor":{"display_login":"ochafik"}}