Complex default args that define methods not defining in correct class
----------------------------------------------------------------------

                 Key: JRUBY-1840
                 URL: http://jira.codehaus.org/browse/JRUBY-1840
             Project: JRuby
          Issue Type: Bug
            Reporter: Charles Oliver Nutter
            Assignee: Charles Oliver Nutter
             Fix For: JRuby 1.1b2


Fix coming.

{noformat}
class X
  def foo(x = (def foo; 'hello'; end; 'goodbye'))
    x
  end
end
x = X.new
p x.foo # should be "goodbye"
p x.foo # should be "hello", but is "goodbye"
p foo # this should fail, but doesn't, returns "hello"
{noformat}

-- 
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