{"action":"created","issue":{"url":"https://api.github.com/repos/Storyyeller/Krakatau/issues/50","labels_url":"https://api.github.com/repos/Storyyeller/Krakatau/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/Storyyeller/Krakatau/issues/50/comments","events_url":"https://api.github.com/repos/Storyyeller/Krakatau/issues/50/events","html_url":"https://github.com/Storyyeller/Krakatau/issues/50","id":110649598,"number":50,"title":"Functions that only differ by return type result in compilation errors","user":{"login":"tbu-","id":6666593,"avatar_url":"https://avatars.githubusercontent.com/u/6666593?v=3","gravatar_id":"","url":"https://api.github.com/users/tbu-","html_url":"https://github.com/tbu-","followers_url":"https://api.github.com/users/tbu-/followers","following_url":"https://api.github.com/users/tbu-/following{/other_user}","gists_url":"https://api.github.com/users/tbu-/gists{/gist_id}","starred_url":"https://api.github.com/users/tbu-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbu-/subscriptions","organizations_url":"https://api.github.com/users/tbu-/orgs","repos_url":"https://api.github.com/users/tbu-/repos","events_url":"https://api.github.com/users/tbu-/events{/privacy}","received_events_url":"https://api.github.com/users/tbu-/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-09T12:35:48Z","updated_at":"2015-10-09T14:47:41Z","closed_at":"2015-10-09T13:35:37Z","body":"When decompiling the scala standard library to Java source files, things like this happen:\r\n\r\n    public static scala.collection.immutable.List empty()\r\n    {\r\n        return scala.collection.immutable.List$.MODULE$.empty();\r\n    }\r\n    public static scala.collection.GenTraversable empty()\r\n    {\r\n        return scala.collection.immutable.List$.MODULE$.empty();\r\n    }\r\n\r\nThis will not compile because the methods only differ by their return types.\r\n\r\nFrom what I can tell this is supported by the bytecode because function calls contain the desired function signature, but not by the Java language.\r\n\r\nQuestion: Is my interpretation of this correct?"},"comment":{"url":"https://api.github.com/repos/Storyyeller/Krakatau/issues/comments/146893007","html_url":"https://github.com/Storyyeller/Krakatau/issues/50#issuecomment-146893007","issue_url":"https://api.github.com/repos/Storyyeller/Krakatau/issues/50","id":146893007,"user":{"login":"tbu-","id":6666593,"avatar_url":"https://avatars.githubusercontent.com/u/6666593?v=3","gravatar_id":"","url":"https://api.github.com/users/tbu-","html_url":"https://github.com/tbu-","followers_url":"https://api.github.com/users/tbu-/followers","following_url":"https://api.github.com/users/tbu-/following{/other_user}","gists_url":"https://api.github.com/users/tbu-/gists{/gist_id}","starred_url":"https://api.github.com/users/tbu-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbu-/subscriptions","organizations_url":"https://api.github.com/users/tbu-/orgs","repos_url":"https://api.github.com/users/tbu-/repos","events_url":"https://api.github.com/users/tbu-/events{/privacy}","received_events_url":"https://api.github.com/users/tbu-/received_events","type":"User","site_admin":false},"created_at":"2015-10-09T14:47:41Z","updated_at":"2015-10-09T14:47:41Z","body":"Thanks for the answer. Could this be worked around by mangling the function names?"}}