Incorrect self in a multiple assignment ---------------------------------------
Key: JRUBY-3517 URL: http://jira.codehaus.org/browse/JRUBY-3517 Project: JRuby Issue Type: Bug Affects Versions: JRuby 1.3 Reporter: Vincent Isambart Assignee: Thomas E Enebo The following line of code does not work properly in JRuby: def foo=(x); end; a, self.foo = 1; p :ok It ends up with the following error: -:1: private method `foo=' called for main:Object (NoMethodError) but it should just display :ok (tested on both Ruby 1.8.6 and 1.9). Note that the test works fine if you remove "a," or in jirb. -- 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