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

Replace unreachable("templateTypeArgs.length != sourceTypeArgs.length") with a real error #521

Open
kengorab opened this issue Dec 18, 2024 · 0 comments
Labels
bug Something isn't working typechecker

Comments

@kengorab
Copy link
Owner

When attempting to extract generics from a "template" type during typechecking, if the number of type arguments does not match the number of type arguments in the "source" type, we reach an unreachable. However, this is a completely valid error state to be in and should be raised as a normal TypeError rather than crashing the program.

@kengorab kengorab added bug Something isn't working typechecker labels Dec 18, 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 typechecker
Projects
None yet
Development

No branches or pull requests

1 participant