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

Qualified type names not recognized at import time in tuple types #2093

Open
tvdstorm opened this issue Dec 6, 2024 · 0 comments
Open

Qualified type names not recognized at import time in tuple types #2093

tvdstorm opened this issue Dec 6, 2024 · 0 comments
Labels

Comments

@tvdstorm
Copy link
Member

tvdstorm commented Dec 6, 2024

When using a qualified module name (when its in a subfolder) in a tuple type, and the module does exist, the type checker does not complain, but at import time the following error occurs:

import Bug2;
[WARNING] |prompt:///|(0,12,<1,0>,<1,12>): Could not load Bug2 due to: Undeclared module: bug::Bug1
Advice: |https://www.rascal-mpl.org/docs/Rascal/Errors/CompileTimeErrors/UndeclaredModule| at |file:///.../src/Bug2.rsc|(61,14,<6,18>,<6,32>)
|file:///.../src/Bug2.rsc|(61,14,<6,18>,<6,32>): Undeclared module: bug::Bug1
Advice: |https://www.rascal-mpl.org/docs/Rascal/Errors/CompileTimeErrors/UndeclaredModule|
ok

Reproduce:

module bug::Bug1

syntax Foo = "foo";
module Bug2

import bug::Bug1;
import IO;

alias Bar = tuple[bug::Bug1::Foo foo];
@tvdstorm tvdstorm added the bug label Dec 6, 2024
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

1 participant