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 name signature bug and extend test for instance fields #2928

Merged
merged 2 commits into from
Jul 30, 2024

Conversation

janmasrovira
Copy link
Collaborator

@janmasrovira janmasrovira commented Jul 30, 2024

This pr fixes a bug where all fields were assigned to be explicit arguments in the NameSignature Builder. A single line change was enough to fix it.

-           RecordStatementField RecordField {..} -> addSymbol @s Explicit Nothing _fieldName _fieldType
+           RecordStatementField RecordField {..} -> addSymbol @s (fromIsImplicitField _fieldIsImplicit) Nothing _fieldName _fieldType

I've also added a compilation test for instance fields.

@janmasrovira janmasrovira self-assigned this Jul 30, 2024
@janmasrovira janmasrovira linked an issue Jul 30, 2024 that may be closed by this pull request
@janmasrovira janmasrovira changed the title fix bug and extend test Fix name signature bug and extend test for instance fields Jul 30, 2024
@janmasrovira janmasrovira marked this pull request as ready for review July 30, 2024 12:53
paulcadman
paulcadman previously approved these changes Jul 30, 2024
@janmasrovira janmasrovira merged commit 178bc53 into main Jul 30, 2024
4 checks passed
@janmasrovira janmasrovira deleted the 2923-add-tests-for-pr-2916 branch July 30, 2024 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add tests for PR #2916
2 participants