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

better error message when the constructorof fallback is passed a Union #97

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nsajko
Copy link

@nsajko nsajko commented Nov 7, 2024

No description provided.

@nsajko nsajko changed the title better error message when the constructorof fallback is passed a Union better error message when the constructorof fallback is passed a Union Nov 7, 2024
@rafaqz
Copy link
Member

rafaqz commented Nov 7, 2024

Thanks. Can you think of any downsides or problems with putting throw in a generated function?

The docs manifest will need updating for that to pass. I'm not sure about the invalidations tests.

@aplavin
Copy link
Member

aplavin commented Nov 7, 2024

What are the typical scenarios when this would trigger? If possible, better to add more explanations to the error message – either "Union not supported by this method, please define constructorof(::???) manually" or "Union not supported by constructorof() at all".

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.

3 participants