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 a Core.Box #114

Merged
merged 1 commit into from
Jul 26, 2024
Merged

Fix a Core.Box #114

merged 1 commit into from
Jul 26, 2024

Conversation

timholy
Copy link
Member

@timholy timholy commented Jul 26, 2024

This is presumably a Julia limitation, but it seems that inner functions
get inferred as Core.Box if they call themselves. We can work around
it by splitting it out.

Specifically, in Cthulhu one sees

for p in preds
    terminal_preds!::Core.Box(s, p, edges, covered)
end

when this is an inner function.

If this has been fixed on Julia nightly (JET doesn't work there so it is harder for me to check), then let's close this without merging.

This is presumably a Julia limitation, but it seems that inner functions
get inferred as `Core.Box` if they call themselves. We can work around
it by splitting it out.

Specifically, in Cthulhu one sees

    for p in preds
        terminal_preds!::Core.Box(s, p, edges, covered)
    end

when this is an inner function.
@timholy timholy merged commit 63b3dd9 into master Jul 26, 2024
8 of 9 checks passed
@timholy timholy deleted the teh/fix_corebox branch July 26, 2024 15:21
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