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

Method#>> and Method#<< are not supported #1821

Closed
deepj opened this issue Nov 22, 2019 · 1 comment
Closed

Method#>> and Method#<< are not supported #1821

deepj opened this issue Nov 22, 2019 · 1 comment
Assignees
Milestone

Comments

@deepj
Copy link

deepj commented Nov 22, 2019

This is supported in MRI 2.6 when proc composition was added.

truffleruby 19.3.0, like ruby 2.6.2, GraalVM CE Native [x86_64-darwin]

To reproduce:

$ ruby -e 'p = ->(x) { x }; def a(x); x; end; method(:a) >> p'

Error:

-e:1:in `<main>': undefined method `>>' for #<Method: Object(Object)#a -e:1>:Method (NoMethodError)
@deepj deepj changed the title Method#>> is not supported Method#>> and Method#<< are not supported Nov 22, 2019
@bjfish bjfish self-assigned this Dec 11, 2019
graalvmbot pushed a commit that referenced this issue Dec 12, 2019
@bjfish
Copy link
Contributor

bjfish commented Dec 12, 2019

Thanks for the bug report @deepj . This has been resolved at 192c776.

@bjfish bjfish closed this as completed Dec 12, 2019
@eregon eregon added this to the 20.0.0 milestone Dec 12, 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