Project

General

Profile

Bug #8718

unary minus with literal suffix of Rational/Complex

Added by no6v (Nobuhiro IMAI) about 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
ruby 2.1.0dev (2013-08-02 trunk 42320) [x86_64-linux]
[ruby-core:56317]

Description

=begin
Unary minus is not supported?

(-1) # => -1
(-1r) # => (1/1) should be (-1/1)
(-1i) # => (0+1i) shoule be (0-1i)
=end

History

Updated by charliesome (Charlie Somerville) about 6 years ago

  • Status changed from Open to Closed

Duplicate of #8717, fixed in r42323.

Also available in: Atom PDF