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

implement to_set #5295

Closed
ahorek opened this issue Aug 28, 2018 · 2 comments
Closed

implement to_set #5295

ahorek opened this issue Aug 28, 2018 · 2 comments

Comments

@ahorek
Copy link
Contributor

ahorek commented Aug 28, 2018

Environment

jruby 9.2.1.0-SNAPSHOT (2.5.0) 2018-08-19 4a2dbb1 Java HotSpot(TM) 64-Bit Server VM 10.0.1+10 on 10.0.1+10 +jit [mswin32-x86_64]

Expected Behavior

require 'set'
["test"].to_set

http://ruby-doc.org/stdlib-2.5.0/libdoc/set/rdoc/Set.html#method-i-to_set

MRI

=> #<Set: {"test"}>

Actual Behavior

JRuby

NoMethodError (undefined method `to_set' for ["test"]:Array
@ahorek
Copy link
Contributor Author

ahorek commented Aug 28, 2018

Set.new(["test"]) works

@enebo enebo added this to the JRuby 9.2.1.0 milestone Aug 29, 2018
@ahorek
Copy link
Contributor Author

ahorek commented Aug 30, 2018

probably something went wrong on my side, it works fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants