-
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
Allow mapping arguments for public and external library functions. #5382
Conversation
b60a486
to
a154a52
Compare
This comment has been minimized.
This comment has been minimized.
Sure, please also allow external functions and returning mappings. Don't forget changelog (which should be for 0.5.1, I would presume) and documentation. |
63f5fbf
to
416aef9
Compare
416aef9
to
b8ac793
Compare
4882a17
to
e3034ef
Compare
1972cd3
to
ee97963
Compare
a1d5bdb
to
ae719f6
Compare
ae719f6
to
76d9008
Compare
76d9008
to
ab1ed61
Compare
27efcdf
to
53d1f39
Compare
} | ||
} | ||
)"; | ||
char const* sourceCode = R"( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indentation seems to be off in tests, but that might be only on Github.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is just how github displays tabs.
Do we have syntax tests for: non-storage mapping in a library function? And all other valid/invalid combinations? |
I would say the tests are fine. |
53d1f39
to
30e6f8d
Compare
Rebased. |
Fixes #4635.
I may be missing something here, since the description in the issue predicts more changes to be necessary.
Also: the issue is restricted to public library functions - no reason to exclude external ones, though, is there?
Also: do we want to support returning mappings from public/external library functions as well? It seems like that would be more involved, but I could think of use cases for that as well (e.g. selecting a mapping from an argument that is a mapping to mappings).