Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enumerator::Chain.new(1..3, [4, 5]) causes TypeError #1858

Closed
deepj opened this issue Dec 16, 2019 · 1 comment
Closed

Enumerator::Chain.new(1..3, [4, 5]) causes TypeError #1858

deepj opened this issue Dec 16, 2019 · 1 comment
Assignees
Milestone

Comments

@deepj
Copy link

deepj commented Dec 16, 2019

This is a direct example from Ruby 2.6 documentation to Enumerator::Chain (https://ruby-doc.org/core-2.6/Enumerator/Chain.html). There is no issue under MRI.

To reproduce:

ruby -e "Enumerator::Chain.new(1..3, [4, 5])"

Error:

-e:1:in `coerce_to_failed': Coercion error: [4, 5].to_sym => Symbol failed (TypeError)
	from -e:1:in `execute_coerce_to'
	from -e:1:in `coerce_to'
	from -e:1:in `initialize'
	from -e:1:in `new'
	from -e:1:in `<main>'
@bjfish bjfish self-assigned this Dec 19, 2019
graalvmbot pushed a commit that referenced this issue Dec 23, 2019
…each, size, rewind, inspect}, Enumerator#+, and Enumerable#chain (#1859, #1858).

PullRequest: truffleruby/1209
@bjfish
Copy link
Contributor

bjfish commented Dec 23, 2019

Thanks, this is fixed at: 3b756ce.

@bjfish bjfish closed this as completed Dec 23, 2019
@bjfish bjfish added this to the 20.0.0 milestone Dec 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants