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

Enumerations aren't considered in scope resolution #134

Open
MattWindsor91 opened this issue Oct 14, 2022 · 1 comment
Open

Enumerations aren't considered in scope resolution #134

MattWindsor91 opened this issue Oct 14, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@MattWindsor91
Copy link
Collaborator

Thomas Wright writes in of a scope resolution bug that means that this code does not validate. The problem is that the enumeration RobotAssistedDressing::NoiseLevel::High is not in scope at expression level.

It should be the case, I think, that NoiseLevel is in scope (qualified and unqualified) by virtue of being an element of the target.

@MattWindsor91
Copy link
Collaborator Author

I added a workaround for this a while back, but when auditing the metamodel with Ana it's become clear that the workaround is not acceptable, and I'll need to rethink things.

The current thought I have is something like

import robochart RobotAssistedDressing

to pull all enumerations defined in RobotAssistedDressing into main scope at the package level.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant