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

Should not implement Default if there is a function called default #1543

Open
zecakeh opened this issue Feb 1, 2024 · 0 comments
Open

Should not implement Default if there is a function called default #1543

zecakeh opened this issue Feb 1, 2024 · 0 comments

Comments

@zecakeh
Copy link

zecakeh commented Feb 1, 2024

Currently it is not possible to generate a builder type without also generating the Default implementation.

That produces cases like libspelling#1, where the type has two different functions called default, that don't do the same thing.

It could be done either via a config option to disable the generation of Default with the builder type, or by detecting automatically if there is a function called default.

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

No branches or pull requests

1 participant