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

Metamodel refs to bootstrap modules #2428

Open
tombentley opened this issue Nov 12, 2015 · 2 comments
Open

Metamodel refs to bootstrap modules #2428

tombentley opened this issue Nov 12, 2015 · 2 comments
Labels
Milestone

Comments

@tombentley
Copy link
Member

It seems that the typechecker incorrectly rejects metamodel references to imported bootstrap modules:

print("\`module ceylon.runtime\` is `` `module ceylon.runtime` ``");

Give me "error: module not found in imported modules: 'ceylon.runtime'"

@tombentley tombentley added this to the 1.3 milestone Nov 12, 2015
@tombentley tombentley added the BUG label Nov 12, 2015
@tombentley
Copy link
Member Author

The problem here is that the typechecker does the lookup via packages, and the ceylon.runtime module doesn't contain a ceylon.runtime package. That can be "fixed" by ensuring each of the bootstrap modules has a like-named package. But I'm not sure if they properly addresses interop (do we support getting module metamodels of interop modules @FroMage?)

@FroMage
Copy link
Member

FroMage commented Nov 12, 2015

Seems to me that's just wrong in ExpressionVisitor it should not match by package name but by ModuleImport transitively.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants