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

Issue with provided type where all arguments are optional #346

Open
dsyme opened this issue Oct 17, 2020 · 0 comments
Open

Issue with provided type where all arguments are optional #346

dsyme opened this issue Oct 17, 2020 · 0 comments
Labels

Comments

@dsyme
Copy link
Contributor

dsyme commented Oct 17, 2020

When you have a provided type, it shouldn't have all its arguments optional. We should give a better or warningfor this case

In particular the case where all the arguments are optional AND all the values given in the static parameter instantiation are exactly identical to the optional values causes the resulting type to be unusable.

The best workaround is to make at least one of your static parameters non-optional, or if they have optional values (e.g. because only one of two are expected to be given) then make sure they are dummy values that no one will ever give in practice.

@dsyme dsyme added the bug label Sep 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant