[ruby-dev:49502] [Ruby trunk Bug#12089] Raise not stable NameError

From: nobu@...
Date: 2016-02-25 05:41:30 UTC
List: ruby-dev #49502
Issue #12089 has been updated by Nobuyoshi Nakada.

Backport set to 2.3: REQUIRED

----------------------------------------
Bug #12089: Raise not stable NameError
https://bugs.ruby-lang.org/issues/12089#change-57123

* Author: Hiroyuki Ishii
* Status: Closed
* Priority: Normal
* Assignee: 
* ruby -v: 2.3.0
* Backport: 2.3: REQUIRED
----------------------------------------
Is this intentional?

```
irb(main):001:0> Object.const_get('A')
NameError: uninitialized constant Object::A
irb(main):002:0> :A
=> :A
irb(main):003:0> Object.const_get('A')
NameError: uninitialized constant A
```



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

In This Thread

Prev Next