[ruby-core:96809] [Ruby master Bug#16506] Documentation for `Module#const_souce_location` is wrong

[email protected] Sun, 12 Jan 2020 18:17:28 +0000 (UTC)
Newsgroups gmane.comp.lang.ruby.core
Message-ID <redmine.issue-16506.20200112181728.0e5b36d7afae3ce6@ruby-lang.org>
Issue #16506 has been reported by sawa (Tsuyoshi Sawada).

----------------------------------------
Bug #16506: Documentation for `Module#const_souce_location` is wrong
https://bugs.ruby-lang.org/issues/16506

* Author: sawa (Tsuyoshi Sawada)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: 2.7
* Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN
----------------------------------------
https://ruby-doc.org/core-2.7.0/Module.html#method-i-const_source_location says:

> Returns the Ruby source filename and line number containing **first** definition of constant specified.

It should be:

> Returns the Ruby source filename and line number containing the **last** definition (the effective definition) of the constant specified.



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

Unsubscribe: <mailto:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>