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

Adding ufcs to match with type of pointer #729

Merged
merged 4 commits into from
Mar 19, 2023
Merged

Adding ufcs to match with type of pointer #729

merged 4 commits into from
Mar 19, 2023

Conversation

vushu
Copy link
Contributor

@vushu vushu commented Mar 17, 2023

I discovered that UFCS completion didn't work correctly with pointer type, this PR should resolve it.

@WebFreak001
Copy link
Member

ah sorry that probably happened with my recent pointer DSymbol changes, although I would have expected things to be more exact now and actually match pointers better.

Does this mean it also doesn't work with AAs, Arrays and function pointers? (since they all share this same DSymbol layout)

@vushu
Copy link
Contributor Author

vushu commented Mar 19, 2023

UFCS completion for AAs, Arrays and function pointer isn't yet supported, so that needs to get implemented at some point. If you mean for standard completion then I don't know.

@WebFreak001
Copy link
Member

why don't we also add support for arrays here? (since they are the exact same layout as pointers)

AAs and function pointers we can move to another time, since they are still missing internal things to properly distinguish.

@vushu
Copy link
Contributor Author

vushu commented Mar 19, 2023

@WebFreak001 I have included array matching as suggested.

@WebFreak001 WebFreak001 merged commit 109d56b into dlang-community:master Mar 19, 2023
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