Forum: Ruby-core [ruby-trunk - Bug #8718][Open] unary minus with literal suffix of Rational/Complex

C0225f8150e28b85666b511e0bbca258?d=identicon&s=25 no6v (Nobuhiro IMAI) (Guest)
on 2013-08-02 03:13
(Received via mailing list)
Issue #8718 has been reported by no6v (Nobuhiro IMAI).

----------------------------------------
Bug #8718: unary minus with literal suffix of Rational/Complex
https://bugs.ruby-lang.org/issues/8718

Author: no6v (Nobuhiro IMAI)
Status: Open
Priority: Normal
Assignee:
Category: core
Target version:
ruby -v: ruby 2.1.0dev (2013-08-02 trunk 42320) [x86_64-linux]
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN


=begin
Unary minus is not supported?

 (-1)  # => -1
 (-1r) # => (1/1)  should be (-1/1)
 (-1i) # => (0+1i) shoule be (0-1i)
=end
F736999f7c1b7a87a100faa112bbc0f3?d=identicon&s=25 charliesome (Charlie Somerville) (Guest)
on 2013-08-02 03:49
(Received via mailing list)
Issue #8718 has been updated by charliesome (Charlie Somerville).

Status changed from Open to Closed

Duplicate of #8717, fixed in r42323.
----------------------------------------
Bug #8718: unary minus with literal suffix of Rational/Complex
https://bugs.ruby-lang.org/issues/8718#change-40814

Author: no6v (Nobuhiro IMAI)
Status: Closed
Priority: Normal
Assignee:
Category: core
Target version:
ruby -v: ruby 2.1.0dev (2013-08-02 trunk 42320) [x86_64-linux]
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN


=begin
Unary minus is not supported?

 (-1)  # => -1
 (-1r) # => (1/1)  should be (-1/1)
 (-1i) # => (0+1i) shoule be (0-1i)
=end
This topic is locked and can not be replied to.