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

AQL classes have the highest priority for name resolution #13

Open
pjeanjean opened this issue Dec 6, 2018 · 1 comment
Open

AQL classes have the highest priority for name resolution #13

pjeanjean opened this issue Dec 6, 2018 · 1 comment

Comments

@pjeanjean
Copy link
Member

The following code fails:

behavior testale_behavior;

class Expression {
	int a := 0;
}

open class ClassA {
	@main
	def void run() {
		Expression.create().a.log();
	}
}

The issue is that a class named Expression is also defined in Acceleo, and it is the one actually referenced here.
Opening a class Expression defined in the associated meta-model without its qualified name would also fail.

Ideally, the user's classes should have a higher priority when not using full qualified names.

@echebbi
Copy link
Collaborator

echebbi commented Jun 29, 2020

Related to #146 and #151.

In my opinion we shouldn't even match AQL EClasses unless the AQL EPackage has been explicitly added to the environment.

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

2 participants