Skip to content

Add signature for RubyVM::InstructionSequence.of#2916

Open
Earlopain wants to merge 1 commit intoruby:masterfrom
Earlopain:rubyvm-is-of
Open

Add signature for RubyVM::InstructionSequence.of#2916
Earlopain wants to merge 1 commit intoruby:masterfrom
Earlopain:rubyvm-is-of

Conversation

@Earlopain
Copy link
Copy Markdown
Contributor

https://docs.ruby-lang.org/en/4.0/RubyVM/InstructionSequence.html#method-c-of

prism uses it and currently vendors this change.

The return type is nillable as per the implementation in ruby but I'm not sure how to actually trigger that for valid input. It may happen with some procs, that's all I know.

https://docs.ruby-lang.org/en/4.0/RubyVM/InstructionSequence.html#method-c-of

`prism` uses it and currently vendors this change.

The return type is nillable as per the implementation in ruby but I'm not sure how to actually trigger that for valid input.
It may happen with some procs, that's all I know.
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

Successfully merging this pull request may close these issues.

1 participant