{"action":"created","issue":{"url":"https://api.github.com/repos/bmx-ng/bcc/issues/94","labels_url":"https://api.github.com/repos/bmx-ng/bcc/issues/94/labels{/name}","comments_url":"https://api.github.com/repos/bmx-ng/bcc/issues/94/comments","events_url":"https://api.github.com/repos/bmx-ng/bcc/issues/94/events","html_url":"https://github.com/bmx-ng/bcc/issues/94","id":62098767,"number":94,"title":"Method overriding doesn't take return type into account","user":{"login":"woollybah","id":95883,"avatar_url":"https://avatars.githubusercontent.com/u/95883?v=3","gravatar_id":"","url":"https://api.github.com/users/woollybah","html_url":"https://github.com/woollybah","followers_url":"https://api.github.com/users/woollybah/followers","following_url":"https://api.github.com/users/woollybah/following{/other_user}","gists_url":"https://api.github.com/users/woollybah/gists{/gist_id}","starred_url":"https://api.github.com/users/woollybah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woollybah/subscriptions","organizations_url":"https://api.github.com/users/woollybah/orgs","repos_url":"https://api.github.com/users/woollybah/repos","events_url":"https://api.github.com/users/woollybah/events{/privacy}","received_events_url":"https://api.github.com/users/woollybah/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bmx-ng/bcc/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"woollybah","id":95883,"avatar_url":"https://avatars.githubusercontent.com/u/95883?v=3","gravatar_id":"","url":"https://api.github.com/users/woollybah","html_url":"https://github.com/woollybah","followers_url":"https://api.github.com/users/woollybah/followers","following_url":"https://api.github.com/users/woollybah/following{/other_user}","gists_url":"https://api.github.com/users/woollybah/gists{/gist_id}","starred_url":"https://api.github.com/users/woollybah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woollybah/subscriptions","organizations_url":"https://api.github.com/users/woollybah/orgs","repos_url":"https://api.github.com/users/woollybah/repos","events_url":"https://api.github.com/users/woollybah/events{/privacy}","received_events_url":"https://api.github.com/users/woollybah/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-03-16T14:30:44Z","updated_at":"2015-03-16T23:01:34Z","closed_at":null,"body":"An overridden method with a different (compatible) return type has incorrect code generated because it is using the original definition of the method, instead of creating a new one for this sub-class.\r\n\r\n```blitzmax\r\nSuperStrict\r\n\r\nFramework brl.standardio\r\n\r\nLocal sub:TSub = New TSub\r\n\r\nPrint sub.getOther().two\r\n\r\n\r\nType TBase\r\n\r\n\tMethod getOther:TOtherBase()\r\n\t\tReturn New TOtherBase\r\n\tEnd Method\r\n\t\r\nEnd Type\r\n\r\nType TSub Extends TBAse\r\n\r\n\tMethod getOther:TOther()\r\n\t\tReturn New TOther\r\n\tEnd Method\r\n\t\r\nEnd Type\r\n\r\nType TOtherBase\r\n\r\n\tField one:Int = 1\r\n\r\nEnd Type\r\n\r\nType TOther Extends TOtherBase\r\n\r\n\tField two:Int = 2\r\n\r\nEnd Type\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/bmx-ng/bcc/issues/comments/81980207","html_url":"https://github.com/bmx-ng/bcc/issues/94#issuecomment-81980207","issue_url":"https://api.github.com/repos/bmx-ng/bcc/issues/94","id":81980207,"user":{"login":"woollybah","id":95883,"avatar_url":"https://avatars.githubusercontent.com/u/95883?v=3","gravatar_id":"","url":"https://api.github.com/users/woollybah","html_url":"https://github.com/woollybah","followers_url":"https://api.github.com/users/woollybah/followers","following_url":"https://api.github.com/users/woollybah/following{/other_user}","gists_url":"https://api.github.com/users/woollybah/gists{/gist_id}","starred_url":"https://api.github.com/users/woollybah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woollybah/subscriptions","organizations_url":"https://api.github.com/users/woollybah/orgs","repos_url":"https://api.github.com/users/woollybah/repos","events_url":"https://api.github.com/users/woollybah/events{/privacy}","received_events_url":"https://api.github.com/users/woollybah/received_events","type":"User","site_admin":false},"created_at":"2015-03-16T23:01:34Z","updated_at":"2015-03-16T23:01:34Z","body":"Because BlitzMax doesn't support method overloading?"}}