-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Mappings cannot be returned from internal functions #4670
Comments
What about the following:
So we should:
EDIT: In fact this does work as expected for local variables. #4671 will allow it syntactically. Therefore it should also work as expected for return types (but currently it doesn't without further changes). |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I updated #4671 to allow assignments for local variables (this already works as verified by the added semantics test). What remains is to allow returning mappings in internal functions and to verify that this works with semantics tests (I rechecked - allowing the returns syntactically alone will not result in the desired behaviour, so this will need some further investigation). |
No description provided.
The text was updated successfully, but these errors were encountered: