return in eigenclass definition is not working
----------------------------------------------

                 Key: JRUBY-4497
                 URL: http://jira.codehaus.org/browse/JRUBY-4497
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.4
         Environment: latest jruby 1.5.0.dev
            Reporter: Vladimir Sizikov


See also: http://redmine.ruby-lang.org/issues/show/1018

{code}
class Object
 def eigenclass
   class <<self
     return self
   end
 end
end
p Object.eigenclass
{code}

MRI 1.8 prints out:  #<Class:Object>
JRuby just silently exits.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to