Skip to content

Subtracting nil from a BigDecimal returns nil #1441

@nmk

Description

@nmk

Under JRuby 1.7.9 and 1.7.10 the following expression evaluates to nil.

require "bigdecimal"
BigDecimal.new("0") - nil # => nil

It raises a TypeError under MRI 2.0, which is the behaviour I would expect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions