Skip to content

Fix assume_effects :foldable for non-concrete types#59

Merged
NHDaly merged 2 commits into
mainfrom
nhd-foldable-assertion
Jan 27, 2026
Merged

Fix assume_effects :foldable for non-concrete types#59
NHDaly merged 2 commits into
mainfrom
nhd-foldable-assertion

Conversation

@NHDaly

@NHDaly NHDaly commented Jan 27, 2026

Copy link
Copy Markdown
Member

A function marked :foldable must terminate for any inputs. There is no guarantee that type parameters will be concrete (and in fact, during abstract evaluation in the compiler, there's every possibility they won't be), but these functions must still terminate.

A function marked `:foldable` must terminate for any inputs. There is no guarantee that type parameters will be concrete (and in fact, during abstract evaluation in the compiler, there's every possibility they won't be), but these functions must still terminate.
Comment thread src/blob.jl Outdated
Comment thread src/blob.jl Outdated
@kpamnany

Copy link
Copy Markdown

Also, CI is broken because of ScopedValues.setindex! looks like.

@NHDaly

NHDaly commented Jan 27, 2026

Copy link
Copy Markdown
Member Author

oops, fixed the typos thank you!
Thanks, yeah, i just asked about that in our RAI julia team slack.

@NHDaly
NHDaly requested a review from kpamnany January 27, 2026 20:21
@NHDaly
NHDaly merged commit 7f363a8 into main Jan 27, 2026
2 of 4 checks passed
@NHDaly
NHDaly deleted the nhd-foldable-assertion branch January 27, 2026 20:23
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