{"action":"created","issue":{"url":"https://api.github.com/repos/scala/scala/issues/5307","repository_url":"https://api.github.com/repos/scala/scala","labels_url":"https://api.github.com/repos/scala/scala/issues/5307/labels{/name}","comments_url":"https://api.github.com/repos/scala/scala/issues/5307/comments","events_url":"https://api.github.com/repos/scala/scala/issues/5307/events","html_url":"https://github.com/scala/scala/pull/5307","id":167928130,"number":5307,"title":"Propagate overloaded function type to expected arg type","user":{"login":"adriaanm","id":91083,"avatar_url":"https://avatars.githubusercontent.com/u/91083?v=3","gravatar_id":"","url":"https://api.github.com/users/adriaanm","html_url":"https://github.com/adriaanm","followers_url":"https://api.github.com/users/adriaanm/followers","following_url":"https://api.github.com/users/adriaanm/following{/other_user}","gists_url":"https://api.github.com/users/adriaanm/gists{/gist_id}","starred_url":"https://api.github.com/users/adriaanm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adriaanm/subscriptions","organizations_url":"https://api.github.com/users/adriaanm/orgs","repos_url":"https://api.github.com/users/adriaanm/repos","events_url":"https://api.github.com/users/adriaanm/events{/privacy}","received_events_url":"https://api.github.com/users/adriaanm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"retronym","id":65551,"avatar_url":"https://avatars.githubusercontent.com/u/65551?v=3","gravatar_id":"","url":"https://api.github.com/users/retronym","html_url":"https://github.com/retronym","followers_url":"https://api.github.com/users/retronym/followers","following_url":"https://api.github.com/users/retronym/following{/other_user}","gists_url":"https://api.github.com/users/retronym/gists{/gist_id}","starred_url":"https://api.github.com/users/retronym/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/retronym/subscriptions","organizations_url":"https://api.github.com/users/retronym/orgs","repos_url":"https://api.github.com/users/retronym/repos","events_url":"https://api.github.com/users/retronym/events{/privacy}","received_events_url":"https://api.github.com/users/retronym/received_events","type":"User","site_admin":false},"assignees":[{"login":"retronym","id":65551,"avatar_url":"https://avatars.githubusercontent.com/u/65551?v=3","gravatar_id":"","url":"https://api.github.com/users/retronym","html_url":"https://github.com/retronym","followers_url":"https://api.github.com/users/retronym/followers","following_url":"https://api.github.com/users/retronym/following{/other_user}","gists_url":"https://api.github.com/users/retronym/gists{/gist_id}","starred_url":"https://api.github.com/users/retronym/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/retronym/subscriptions","organizations_url":"https://api.github.com/users/retronym/orgs","repos_url":"https://api.github.com/users/retronym/repos","events_url":"https://api.github.com/users/retronym/events{/privacy}","received_events_url":"https://api.github.com/users/retronym/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/scala/scala/milestones/47","html_url":"https://github.com/scala/scala/milestones/2.12.0-RC1","labels_url":"https://api.github.com/repos/scala/scala/milestones/47/labels","id":977200,"number":47,"title":"2.12.0-RC1","description":"The PR queue for RC1 is now closed. We'll release as soon as the all PRs have been reviewed and merged, hopefully by mid August. [Discussion](https://groups.google.com/d/msg/scala-internals/hxDjZfm1h3c/Y5OkHdatAAAJ)\r\n\r\nWe will merge 2.12.0 into the 2.12.x branch, so that 2.12.1 development can continue during the RC cycle.\r\n\r\nLead: @adriaanm\r\n\r\nMerge to 2.12.0.","creator":{"login":"adriaanm","id":91083,"avatar_url":"https://avatars.githubusercontent.com/u/91083?v=3","gravatar_id":"","url":"https://api.github.com/users/adriaanm","html_url":"https://github.com/adriaanm","followers_url":"https://api.github.com/users/adriaanm/followers","following_url":"https://api.github.com/users/adriaanm/following{/other_user}","gists_url":"https://api.github.com/users/adriaanm/gists{/gist_id}","starred_url":"https://api.github.com/users/adriaanm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adriaanm/subscriptions","organizations_url":"https://api.github.com/users/adriaanm/orgs","repos_url":"https://api.github.com/users/adriaanm/repos","events_url":"https://api.github.com/users/adriaanm/events{/privacy}","received_events_url":"https://api.github.com/users/adriaanm/received_events","type":"User","site_admin":false},"open_issues":25,"closed_issues":48,"state":"open","created_at":"2015-02-12T17:53:06Z","updated_at":"2016-08-10T11:58:38Z","due_on":"2016-08-22T07:00:00Z","closed_at":null},"comments":11,"created_at":"2016-07-27T18:51:19Z","updated_at":"2016-08-10T22:42:12Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/scala/scala/pulls/5307","html_url":"https://github.com/scala/scala/pull/5307","diff_url":"https://github.com/scala/scala/pull/5307.diff","patch_url":"https://github.com/scala/scala/pull/5307.patch"},"body":"Infer missing parameter types for function literals passed\r\nto higher-order overloaded methods by deriving the\r\nexpected argument type from the function types in the\r\noverloaded method type's argument types.\r\n\r\nThis eases the pain caused by methods becoming overloaded\r\nbecause SAM types and function types are compatible,\r\nwhich used to disable parameter type inference because\r\nfor overload resolution arguments are typed without\r\nexpected type, while typedFunction needs the expected\r\ntype to infer missing parameter types for function literals.\r\n\r\nIt also aligns us with dotty. The special case for\r\nfunction literals seems reasonable, as it has precedent,\r\nand it just enables the special case in typing function\r\nliterals (derive the param types from the expected type).\r\n\r\nSince this does change type inference, you can opt out\r\nusing the Scala 2.11 source level.\r\n\r\nFix scala/scala-dev#157"},"comment":{"url":"https://api.github.com/repos/scala/scala/issues/comments/239027094","html_url":"https://github.com/scala/scala/pull/5307#issuecomment-239027094","issue_url":"https://api.github.com/repos/scala/scala/issues/5307","id":239027094,"user":{"login":"retronym","id":65551,"avatar_url":"https://avatars.githubusercontent.com/u/65551?v=3","gravatar_id":"","url":"https://api.github.com/users/retronym","html_url":"https://github.com/retronym","followers_url":"https://api.github.com/users/retronym/followers","following_url":"https://api.github.com/users/retronym/following{/other_user}","gists_url":"https://api.github.com/users/retronym/gists{/gist_id}","starred_url":"https://api.github.com/users/retronym/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/retronym/subscriptions","organizations_url":"https://api.github.com/users/retronym/orgs","repos_url":"https://api.github.com/users/retronym/repos","events_url":"https://api.github.com/users/retronym/events{/privacy}","received_events_url":"https://api.github.com/users/retronym/received_events","type":"User","site_admin":false},"created_at":"2016-08-10T22:42:12Z","updated_at":"2016-08-10T22:42:12Z","body":"> Maybe we should allow no-op init methods?\r\n\r\nThe problem here is separate compilation."}}
{"actor":{"display_login":"retronym"}}