From: naruse@... Date: 2017-03-11T16:44:44+00:00 Subject: [ruby-core:80027] [Ruby trunk Bug#13120] p [].class shows ThreadSafe::Array when it expects to show Array Issue #13120 has been updated by Yui NARUSE. Backport changed from 2.2: DONTNEED, 2.3: DONTNEED, 2.4: REQUIRED to 2.2: DONTNEED, 2.3: DONTNEED, 2.4: DONE ruby_2_4 r57856 merged revision(s) 57305. ---------------------------------------- Bug #13120: p [].class shows ThreadSafe::Array when it expects to show Array https://bugs.ruby-lang.org/issues/13120#change-63449 * Author: Yasuo Honda * Status: Closed * Priority: Normal * Assignee: * Target version: * ruby -v: ruby 2.5.0dev (2017-01-10 trunk 57299) [x86_64-linux] * Backport: 2.2: DONTNEED, 2.3: DONTNEED, 2.4: DONE ---------------------------------------- It has been filed as Rails issue https://github.com/rails/rails/issues/27631 and found there was a similar bug reported https://bugs.ruby-lang.org/issues/11977 . It looks it reproduces again. Steps to reproduce: ``` $ ruby -v ruby 2.5.0dev (2017-01-10 trunk 57299) [x86_64-linux] $ bundle -v Bundler version 1.13.7 $ git clone -b ruby250 https://github.com/yahonda/array_bug.git $ cd array_bug $ bundle $ bundle exec ruby -w -e 'p [].class' Array $ bundle exec ruby -w -e 'require "rails"; p [].class' ThreadSafe::Array ``` -- https://bugs.ruby-lang.org/ Unsubscribe: