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

Correct IO#{close_on_exec=, autoclose=, sync=} signatures #659

Merged
merged 3 commits into from
Apr 21, 2021
Merged

Correct IO#{close_on_exec=, autoclose=, sync=} signatures #659

merged 3 commits into from
Apr 21, 2021

Conversation

kachick
Copy link
Member

@kachick kachick commented Mar 24, 2021

No description provided.

IO.open(IO.sysopen(__FILE__)) do |io|
assert_send_type '() -> bool',
io, :close_on_exec?
assert_send_type '(::Integer) -> untyped',
Copy link
Member Author

Choose a reason for hiding this comment

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

Suggested change
assert_send_type '(::Integer) -> untyped',
assert_send_type '(::Integer) -> ::Integer',

When I write above, it fails.
I have issued it in https://bugs.ruby-lang.org/issues/17745 and ruby/ruby#4321.

Copy link
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.

Thanks!

@soutaro soutaro merged commit 66913e9 into ruby:master Apr 21, 2021
@kachick
Copy link
Member Author

kachick commented Apr 29, 2021

Thank you!

@kachick kachick deleted the accurate-some-io-attr_setters branch April 29, 2021 03:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants