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

improve name resolution of type aliases #2061

Merged
merged 2 commits into from
Sep 8, 2023
Merged

improve name resolution of type aliases #2061

merged 2 commits into from
Sep 8, 2023

Conversation

smonicas
Copy link
Contributor

@smonicas smonicas commented Jul 20, 2023

Fix #1809
This fix the specific example in the issue however it doesn't work if you use a type alias from another contract e.g. DeleteTest.Z.wrap(4) .
BREAKING CHANGE: Renamed user_defined_types to type_aliases so it's less confusing with what we call UserDefinedType.
Added type aliased at the Contract level so now at the file scope there are only top level aliasing and fully qualified contract aliasing like C.myAlias.

@0xalpharush 0xalpharush marked this pull request as ready for review September 8, 2023 04:18
@0xalpharush 0xalpharush changed the title Improve type aliasing [BREAKING CHANGE] Improve type aliasing Sep 8, 2023
@0xalpharush 0xalpharush changed the title [BREAKING CHANGE] Improve type aliasing improve name resolution of type aliases Sep 8, 2023
@0xalpharush 0xalpharush merged commit 8b07fe5 into dev Sep 8, 2023
73 checks passed
@0xalpharush 0xalpharush deleted the dev-type-alias branch September 8, 2023 04:39
@0xalpharush
Copy link
Contributor

@smonicas will you open an issue with a test case for what isn't working with the fully qualified name

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

Successfully merging this pull request may close these issues.

2 participants