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

Can't inherit from sub-component of external module #270

Open
apblack opened this issue Nov 17, 2018 · 0 comments
Open

Can't inherit from sub-component of external module #270

apblack opened this issue Nov 17, 2018 · 0 comments

Comments

@apblack
Copy link
Contributor

apblack commented Nov 17, 2018

See the test in file js/tests/known-failing/t182_inheritsExternal.grace

The class stringSet attempt to inherit from fd.dictionary.empty, where fd is a nickname of the external module fastDict. The gct for _fastDictsays thatdictionaryis a fresh method, and that it has an attributeempty, but not that dictionary.empty` is fresh, or what attributes it has.

Hence, minigrace is unable to resolve implicit requests to at(_)put(_), etc, inherited from fd.dictionary.empty. They have to be turned into explicit self requests to allow th test to compile.

Fixing this issue will require more information in the gct, or a better way of doing inter-module name resolution.

@apblack apblack changed the title Can't inherit from external module Can't inherit from sub-component of external module Nov 18, 2018
apblack added a commit that referenced this issue Nov 18, 2018
There is no enough information in the gct to make this work.
See issue #270
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

No branches or pull requests

1 participant