{"action":"created","issue":{"url":"https://api.github.com/repos/vert-x3/vertx-codegen/issues/94","repository_url":"https://api.github.com/repos/vert-x3/vertx-codegen","labels_url":"https://api.github.com/repos/vert-x3/vertx-codegen/issues/94/labels{/name}","comments_url":"https://api.github.com/repos/vert-x3/vertx-codegen/issues/94/comments","events_url":"https://api.github.com/repos/vert-x3/vertx-codegen/issues/94/events","html_url":"https://github.com/vert-x3/vertx-codegen/issues/94","id":169521090,"number":94,"title":"Question: Why overloaded methods with different return type disallowed?","user":{"login":"fzakaria","id":605070,"avatar_url":"https://avatars.githubusercontent.com/u/605070?v=3","gravatar_id":"","url":"https://api.github.com/users/fzakaria","html_url":"https://github.com/fzakaria","followers_url":"https://api.github.com/users/fzakaria/followers","following_url":"https://api.github.com/users/fzakaria/following{/other_user}","gists_url":"https://api.github.com/users/fzakaria/gists{/gist_id}","starred_url":"https://api.github.com/users/fzakaria/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fzakaria/subscriptions","organizations_url":"https://api.github.com/users/fzakaria/orgs","repos_url":"https://api.github.com/users/fzakaria/repos","events_url":"https://api.github.com/users/fzakaria/events{/privacy}","received_events_url":"https://api.github.com/users/fzakaria/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-05T03:24:38Z","updated_at":"2016-08-05T06:04:45Z","closed_at":null,"body":"I see the test case `testOverloadedMethodsWithDifferentReturnType` and wondering why is it disallowed ?\r\n\r\nAs long as the method has a different signature (different parameters) it should work ?"},"comment":{"url":"https://api.github.com/repos/vert-x3/vertx-codegen/issues/comments/237763859","html_url":"https://github.com/vert-x3/vertx-codegen/issues/94#issuecomment-237763859","issue_url":"https://api.github.com/repos/vert-x3/vertx-codegen/issues/94","id":237763859,"user":{"login":"vietj","id":225674,"avatar_url":"https://avatars.githubusercontent.com/u/225674?v=3","gravatar_id":"","url":"https://api.github.com/users/vietj","html_url":"https://github.com/vietj","followers_url":"https://api.github.com/users/vietj/followers","following_url":"https://api.github.com/users/vietj/following{/other_user}","gists_url":"https://api.github.com/users/vietj/gists{/gist_id}","starred_url":"https://api.github.com/users/vietj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vietj/subscriptions","organizations_url":"https://api.github.com/users/vietj/orgs","repos_url":"https://api.github.com/users/vietj/repos","events_url":"https://api.github.com/users/vietj/events{/privacy}","received_events_url":"https://api.github.com/users/vietj/received_events","type":"User","site_admin":false},"created_at":"2016-08-05T06:04:45Z","updated_at":"2016-08-05T06:04:45Z","body":"it is disallowed because in some languages don't support overloading of method, so in this case it create some problems because the method cannot return the 2 types at the same time. The solution for this is to create different methods like `getSomethingAsBuffer()` etc..."}}
{"actor":{"display_login":"vietj"}}