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

Check and reassign the field type #205

Open
katat opened this issue Oct 17, 2024 · 1 comment
Open

Check and reassign the field type #205

katat opened this issue Oct 17, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@katat
Copy link
Collaborator

katat commented Oct 17, 2024

There are currently two types of field, either constant or not.

When a variable is declared, it stores and propagate the field type, including the constant value.

The generic function checks uses the constant argument to instantiate the function.

We need to make sure the reassignment of a variable or struct field update the field type accordingly.

@katat katat added the bug Something isn't working label Oct 17, 2024
@katat
Copy link
Collaborator Author

katat commented Nov 8, 2024

The type of a struct field is updated when reassignment happens.

But it will still need to take care of the field variable and array variable.

@katat katat self-assigned this Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant