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: Fix square bracket printing in array field declarations #4436

Conversation

algomaster99
Copy link
Contributor

Fixes #4421

I missed attaching metadata to generic types in array type references in #4341 which resulted in #4421. The changes in this PR fix it.

Also, I slightly changed the test case to modify the source position of type reference instead of the entire field because the former is more precise.

@monperrus
Copy link
Collaborator

LGTM, will merge.

@monperrus monperrus changed the title fix: Fix square bracket printing in arrays of generic type fix: Fix square bracket printing in array field declarations Jan 11, 2022
@monperrus monperrus merged commit f98e33b into INRIA:master Jan 11, 2022
@algomaster99 algomaster99 deleted the issue-4421-square-bracket-printing-generic-type branch January 11, 2022 18: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.

[Bug] Brackets omitted for arrays of generic types
2 participants