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

Type packs are not supported in declaration files #1247

Open
Ukendio opened this issue May 5, 2024 · 1 comment
Open

Type packs are not supported in declaration files #1247

Ukendio opened this issue May 5, 2024 · 1 comment
Labels
bug Something isn't working enhancement New feature or request pr welcome Please contribute a pull request

Comments

@Ukendio
Copy link

Ukendio commented May 5, 2024

Right now there's a gap in the syntax for declaration files with the lack of support for generic type packs.
image

One way it can be resolved is using the preexisting construct of Parser::parseGenericTypeList to get a list of the type packs. However I was told that it may require some post processing of the returned lists as self doesn't need an annotation, but all other parameters needs to be annotated. Additionally I was told that TypeInfer.cpp and ConstraintGenerator.cpp may require changes to handle the varargs

@Ukendio Ukendio added the enhancement New feature or request label May 5, 2024
@Ukendio
Copy link
Author

Ukendio commented May 5, 2024

Split between whether this should be a bug report or a feature request but I will let moderators handle that1

@alexmccord alexmccord added bug Something isn't working pr welcome Please contribute a pull request labels May 6, 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 enhancement New feature or request pr welcome Please contribute a pull request
Development

No branches or pull requests

2 participants