[ruby-dev:48304] [ruby-trunk - Bug #9962] Numeric.new

From: ko1@...
Date: 2014-06-19 19:15:21 UTC
List: ruby-dev #48304
Issue #9962 has been updated by Koichi Sasada.


Numeric.new 自体は、

test/ruby/test_numeric.rb に

```ruby
    assert_raise(TypeError) { -Numeric.new }
```

とあったため、[ruby-trunk - Bug #9961] で利用したのでした。


----------------------------------------
Bug #9962: Numeric.new
https://bugs.ruby-lang.org/issues/9962#change-47304

* Author: Usaku NAKAMURA
* Status: Open
* Priority: Normal
* Assignee: 
* Category: core
* Target version: current: 2.2.0
* ruby -v: -
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
Numeric.new はできないようにしないといけないのでは……。
以前 Numeric の子孫は全部 new を殺したのに、まさかすぎて忘却してたようですね。

これ仕様変更かもしんないけど、backport はすべきなんすかねえ。



-- 
https://bugs.ruby-lang.org/

In This Thread

Prev Next