Skip to content

Add signature for RubyVM::InstructionSequence.of#2916

Merged
soutaro merged 2 commits intoruby:masterfrom
Earlopain:rubyvm-is-of
Apr 9, 2026
Merged

Add signature for RubyVM::InstructionSequence.of#2916
soutaro merged 2 commits 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.
Copy link
Copy Markdown
Member

@soutaro soutaro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@soutaro soutaro added this to the RBS 4.1 milestone Apr 9, 2026
@soutaro soutaro enabled auto-merge April 9, 2026 02:10
@soutaro soutaro merged commit f1803ab into ruby:master Apr 9, 2026
25 checks passed
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.

2 participants