-
Notifications
You must be signed in to change notification settings - Fork 73
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
Allow the type checker to accept empty values #1393
Conversation
Oh I wouldn't introduce a new type, this should just be the empty tuple. |
I think we need to change the interaction between the type inference and the side effect checker a little. Because now, statements without assignment are valid everywhere, so we cannot really make this an error in the side effect checker in non-constr functions any more (so the Then I think we need to change Now whenever we enter the body of a LambdaExpression in type inference, we need to set a flag depending on its |
…into type_checker_empty
Co-authored-by: chriseth <chris@ethereum.org>
Co-authored-by: chriseth <chris@ethereum.org>
Co-authored-by: chriseth <chris@ethereum.org>
This PR builds on top of #1393. It mainly modifies the grammar by changing the way SelectedExpressions are declared, to allow blocks to be empty. --------- Co-authored-by: chriseth <chris@ethereum.org>
No description provided.