Skip to content
This repository was archived by the owner on Aug 27, 2025. It is now read-only.

Conversation

@jjcnn
Copy link
Contributor

@jjcnn jjcnn commented Mar 17, 2021

The disambiguator reported a error when a local library definition shadowed an imported definition, e.g., when a contract library imports ListUtils but then redefines list_length.

This has now been fixed, although it required a bit of refactoring to lift the culpable line of code out to the point where it could be avoided (the check is still needed to avoid multiple imports of the same name).

Note that the disambiguator allows shadowing of type and constructor names. However, the recursion check (via DatatypeDictionary) reports an error on them.

@jjcnn jjcnn merged commit b9fdcff into master Mar 18, 2021
@jjcnn jjcnn deleted the fix_shadowing_of_imports branch March 18, 2021 07:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants