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 type-instabilities due to function composition #142

Merged
merged 1 commit into from
Feb 19, 2024
Merged

Fix type-instabilities due to function composition #142

merged 1 commit into from
Feb 19, 2024

Conversation

mofeing
Copy link
Contributor

@mofeing mofeing commented Feb 19, 2024

Fixes Leaves iterator type-unstable? #141

Apparently, the compiler fails to reason about nested composed functions and fallbacks to Any on type inference. By replacing the function composition operator for just traditional function chaining, the issue disappears.

@mofeing
Copy link
Contributor Author

mofeing commented Feb 19, 2024

The errors are due to a CI misconfiguration. All tests pass.

@oscardssmith
Copy link
Member

I would be happier if CI was working, but this looks reasonable.

@mofeing
Copy link
Contributor Author

mofeing commented Feb 19, 2024

I would be happier if CI was working, but this looks reasonable.

Should be easy to fix: it's just complaining that Aqua and Test should have a [compat] specification.

Fixes Leaves iterator type-unstable? #141
@oscardssmith oscardssmith merged commit 0356cc1 into JuliaCollections:master Feb 19, 2024
13 checks passed
@mofeing mofeing deleted the fix-type-instability-due-composition branch February 19, 2024 16:34
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