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

add frules for getfield #739

Merged
merged 3 commits into from
Oct 3, 2023
Merged

add frules for getfield #739

merged 3 commits into from
Oct 3, 2023

Conversation

oxinabox
Copy link
Member

This are taken directly from another project.
Suprising we didn't have them already

Comment on lines 6 to 10
test_frule(getfield, Foo(1.5, 2.5), :x, check_inferred=false)

test_frule(getfield, (; a=1.5, b=2.5), :a, check_inferred=false)
Copy link
Member Author

Choose a reason for hiding this comment

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

These actually infer fine as long as the frule gets inlined somewhere where the symbol is known at compile time.
I.e. almost all uses hopefully.

@oxinabox
Copy link
Member Author

Apparently these CI failures are real.
They do not occur on main, from what i can tell.

Copy link
Member

@oscardssmith oscardssmith left a comment

Choose a reason for hiding this comment

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

This looks good to me (other than the fact that CI is unhappy)

@oxinabox oxinabox merged commit 0e62078 into main Oct 3, 2023
6 of 10 checks passed
@oxinabox oxinabox deleted the ox/getfield branch October 3, 2023 10:36
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