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

From: naruse@...
Date: 2016-03-29 15:00:37 UTC
List: ruby-dev #49541
Issue #12089 has been updated by Yui NARUSE.

Backport changed from 2.3: REQUIRED to 2.3: DONE

ruby_2_3 r54408 merged revision(s) 53875.

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

* Author: Hiroyuki Ishii
* Status: Closed
* Priority: Normal
* Assignee: 
* ruby -v: 2.3.0
* Backport: 2.3: DONE
----------------------------------------
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