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

facilitate multiple type inference passes #52

Open
jan-ferdinand opened this issue Nov 22, 2023 · 0 comments
Open

facilitate multiple type inference passes #52

jan-ferdinand opened this issue Nov 22, 2023 · 0 comments

Comments

@jan-ferdinand
Copy link
Member

The compiler's ergonomics increase if not all types have to be explicitly given everywhere. This generally requires multiple inferring passes. Currently, the type checker fails hard if a type cannot be inferred during its first invocation, prohibiting deferring inferring to a later point.

Change the type checker's fn derive_annotate_expr_type to return a Result<_, _> instead of panic!ing.

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