Skip to content

DSLD meta methods and properties not restricted to free-variable position #597

@eric-milles

Description

@eric-milles

Consider the following DSLD snippet:

contribute(currentType(...)) {
    if (enclosingNode instanceof MethodCallExpression && enclosingNode.method ...) {
    }
}

enclosingNode.method is inferencing to the meta-DSLD addition method. Because the object expression is not this, method should inference to MethodCallExpression.getMethod or show as unknown.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions