{"action":"created","issue":{"url":"https://api.github.com/repos/dart-lang/linter/issues/1138","repository_url":"https://api.github.com/repos/dart-lang/linter","labels_url":"https://api.github.com/repos/dart-lang/linter/issues/1138/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/linter/issues/1138/comments","events_url":"https://api.github.com/repos/dart-lang/linter/issues/1138/events","html_url":"https://github.com/dart-lang/linter/issues/1138","id":352326465,"node_id":"MDU6SXNzdWUzNTIzMjY0NjU=","number":1138,"title":"Add a lint to require types on generic methods","user":{"login":"Hixie","id":551196,"node_id":"MDQ6VXNlcjU1MTE5Ng==","avatar_url":"https://avatars2.githubusercontent.com/u/551196?v=4","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":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":30,"created_at":"2018-08-20T23:03:02Z","updated_at":"2018-09-24T14:18:40Z","closed_at":null,"author_association":"NONE","body":"Right now, there's no lint that catches (e.g.) the lack of a type argument on the `Iterable.map` method.\r\nIt would be nice to be able to know where we're missing them.\r\nAlso, ideally such a lint would not trigger if the method in question is labeled with `@optionalTypeArgs`.\r\n\r\ncc @a14n "},"comment":{"url":"https://api.github.com/repos/dart-lang/linter/issues/comments/423990975","html_url":"https://github.com/dart-lang/linter/issues/1138#issuecomment-423990975","issue_url":"https://api.github.com/repos/dart-lang/linter/issues/1138","id":423990975,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMzk5MDk3NQ==","user":{"login":"bwilkerson","id":5840555,"node_id":"MDQ6VXNlcjU4NDA1NTU=","avatar_url":"https://avatars1.githubusercontent.com/u/5840555?v=4","gravatar_id":"","url":"https://api.github.com/users/bwilkerson","html_url":"https://github.com/bwilkerson","followers_url":"https://api.github.com/users/bwilkerson/followers","following_url":"https://api.github.com/users/bwilkerson/following{/other_user}","gists_url":"https://api.github.com/users/bwilkerson/gists{/gist_id}","starred_url":"https://api.github.com/users/bwilkerson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bwilkerson/subscriptions","organizations_url":"https://api.github.com/users/bwilkerson/orgs","repos_url":"https://api.github.com/users/bwilkerson/repos","events_url":"https://api.github.com/users/bwilkerson/events{/privacy}","received_events_url":"https://api.github.com/users/bwilkerson/received_events","type":"User","site_admin":false},"created_at":"2018-09-24T14:18:39Z","updated_at":"2018-09-24T14:18:39Z","author_association":"MEMBER","body":"@Hixie Are you trying to express the conditions under which type inference can validly infer the return type (`T`)?\r\n\r\nIf so, then it seems like it ought to be sufficient to have at least one parameter of that type rather than requiring that all parameters are of that type, such as in `T m<T>(T p1, int p2)`. More generally, I think we only need at least one parameter whose type uses that type, such as in `T m<T>(List<T> p1)`."}}
{"actor":{"display_login":"bwilkerson"}}