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

Using type with potential namesakes should raise a warning #146

Open
dvojtise opened this issue Jun 26, 2020 · 0 comments
Open

Using type with potential namesakes should raise a warning #146

dvojtise opened this issue Jun 26, 2020 · 0 comments

Comments

@dvojtise
Copy link
Contributor

dvojtise commented Jun 26, 2020

Similarly to #77
one can declare attribute, operation parameters using a type name that is ambiguous.
The following example is wrong because State currentState; has a namesakes (several eClasses named State in the environment) (and the reported error, isn't always straightforward, for example it only says that it cannot find the method step Couldn't find the 'step(EClassifier=State,EClassifier=EString)' service without indicating the qualified name)
(correct code is fsm::State currentState;)

image

This point is handled when opening a class (thanks to #77 ) but should also be reported in any other places we can use non fully qualified names (attribute definition, operation return type, arguments)

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

No branches or pull requests

1 participant