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 bug that occurs when passing to Reflection.getFieldRef #24829

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

e-kayrakli
Copy link
Contributor

This PR resolves a bug for cases like Reflection.getFieldRef(this);. Using that idiom in a method required the method to have a ref this intent, which was superfluous and prevented other things downstream.

Thanks @jeremiah-corrado for the suggestion!

Signed-off-by: Engin Kayraklioglu <e-kayrakli@users.noreply.github.com>
Copy link
Contributor

@jeremiah-corrado jeremiah-corrado left a comment

Choose a reason for hiding this comment

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

Looks good! Just one comment on the test:

test/library/standard/Reflection/getFieldRef-borrowed.chpl Outdated Show resolved Hide resolved
Signed-off-by: Engin Kayraklioglu <e-kayrakli@users.noreply.github.com>
@e-kayrakli
Copy link
Contributor Author

Thanks! Running paratest, will merge if it comes back clean.

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.

None yet

2 participants