Unary operator + not working on class Symbol
--------------------------------------------

                 Key: JRUBY-4364
                 URL: http://jira.codehaus.org/browse/JRUBY-4364
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.4
         Environment: Windows 7 64bit
            Reporter: Alexandre Mutel
            Priority: Minor


Trying to use the unary + operator on class Symbol is not working, while the 
unary - operator is working

class Symbol
  def +@
    puts "unary + operator working on #{self}"
  end
  def -@
    puts "unary - operator working on #{self}"
   end
end
=> nil

irb(main):011:0> +:test
=> :test
irb(main):012:0> -:test
unary - operator working on test
=> nil

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