{"action":"opened","issue":{"url":"https://api.github.com/repos/opal/opal/issues/1229","labels_url":"https://api.github.com/repos/opal/opal/issues/1229/labels{/name}","comments_url":"https://api.github.com/repos/opal/opal/issues/1229/comments","events_url":"https://api.github.com/repos/opal/opal/issues/1229/events","html_url":"https://github.com/opal/opal/issues/1229","id":120872411,"number":1229,"title":"Delegators override Object#class","user":{"login":"Papierkorb","id":737062,"avatar_url":"https://avatars.githubusercontent.com/u/737062?v=3","gravatar_id":"","url":"https://api.github.com/users/Papierkorb","html_url":"https://github.com/Papierkorb","followers_url":"https://api.github.com/users/Papierkorb/followers","following_url":"https://api.github.com/users/Papierkorb/following{/other_user}","gists_url":"https://api.github.com/users/Papierkorb/gists{/gist_id}","starred_url":"https://api.github.com/users/Papierkorb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Papierkorb/subscriptions","organizations_url":"https://api.github.com/users/Papierkorb/orgs","repos_url":"https://api.github.com/users/Papierkorb/repos","events_url":"https://api.github.com/users/Papierkorb/events{/privacy}","received_events_url":"https://api.github.com/users/Papierkorb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-07T21:30:58Z","updated_at":"2015-12-07T21:30:58Z","closed_at":null,"body":"The following script shows an issue with `DelegateClass` and `SimpleDelegator` behaving differently in MRI and Opal:\r\n\r\n```ruby\r\nrequire 'delegate'\r\n\r\nclass Foo; end\r\nclass Bar < DelegateClass(Foo); end\r\nclass Baz < DelegateClass(Foo); end\r\n\r\nputs Bar.new(Foo.new).class\r\nputs Baz.new(Foo.new).class\r\n```\r\n\r\nExpected output (MRI): `Bar` (both)\r\nOutput from Opal: `Foo` (both, Tested with *opal-repl*)\r\n"}}