Project

General

Profile

Actions

Bug #13142

closed

Forwardable regression: cannot delegate to a constant since 2.4.0

Added by ch1c0t (Anatoly Chernow) about 7 years ago. Updated over 4 years ago.

Status:
Closed
Target version:
-
[ruby-core:79207]

Description

Before this commit

https://github.com/ch1c0t/tra/commit/96b15f042183f488413db99d6ede304d20503cbd

it works just fine on 2.3. But on 2.4.0:

/usr/lib/ruby/2.4.0/forwardable.rb:222:in `take': uninitialized constant ENUMERATOR (NameError)
Did you mean?  Enumerator
               Enumerable
        from test.rb:16:in `<main>'

I report it because it might be an unintentional regression.


Files

forwardable-constant-doc.patch (2.72 KB) forwardable-constant-doc.patch jeremyevans0 (Jeremy Evans), 06/24/2019 10:08 PM
Actions

Also available in: Atom PDF

Like0
Like0Like0