Issue #12517 has been reported by Samuel Williams.

----------------------------------------
Bug #12517: def_delegators broken on ruby-head?
https://bugs.ruby-lang.org/issues/12517

* Author: Samuel Williams
* Status: Open
* Priority: Normal
* Assignee: 
* ruby -v: 
* Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
----------------------------------------
I found the following issue:

https://travis-ci.org/ioquatix/build-files/jobs/140181966

~~~
/home/travis/.rvm/rubies/ruby-head/lib/ruby/2.4.0/forwardable.rb:200:in `compile': negative array size (or size too big) (ArgumentError)
	from /home/travis/.rvm/rubies/ruby-head/lib/ruby/2.4.0/forwardable.rb:200:in `_delegator_method'
	from /home/travis/.rvm/rubies/ruby-head/lib/ruby/2.4.0/forwardable.rb:178:in `def_instance_delegator'
	from /home/travis/.rvm/rubies/ruby-head/lib/ruby/2.4.0/forwardable.rb:154:in `block in def_instance_delegators'
	from /home/travis/.rvm/rubies/ruby-head/lib/ruby/2.4.0/forwardable.rb:153:in `each'
	from /home/travis/.rvm/rubies/ruby-head/lib/ruby/2.4.0/forwardable.rb:153:in `def_instance_delegators'
	from /home/travis/build/ioquatix/build-files/lib/build/files/state.rb:71:in `<class:State>'
~~~

This is caused by the following line:

~~~
		class State < Files::List
			extend Forwardable
			def_delegators :@files, :each, :roots, :count
~~~

It was fine in 2.3.0 and before.



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

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