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

Fix (return) type inference of Base.write #31

Merged
merged 1 commit into from
Feb 1, 2024

Conversation

tecosaur
Copy link
Collaborator

@tecosaur tecosaur commented Feb 1, 2024

Just the where {F <: Function} change should be enough to correct type
inference in theory, but Base.return_type still gave Any with just
that change, so we're also adding a type assertion to the write method.

Just the "where {F <: Function}" change should be enough to correct type
inference in theory, but Base.return_type still gave "Any" with just
that change, so we're also adding a type assertion to the write method.
@tecosaur tecosaur merged commit a1b2ae2 into main Feb 1, 2024
4 checks passed
@tecosaur tecosaur deleted the fix-write-type-inference branch February 1, 2024 12:53
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